Extend order expiry date
- Example Request
- Example Response
curl -X POST \
-H 'authorization: Bearer v4.public.eyJpc3MiOiJs...' \
-H 'content-type: application/json' \
-H 'Idempotency-Key: da7ca8f9-9155-4721-b5f0-81945bff9e4a' \
https://api.sandbox.ledyer.com/v1/orders/:orderId/extendexpiry
Request Headers
Idempotency-Key
stringOptionalBy providing a unique value for this header, the idempotency of the operation will be guaranteed. This means that retries of requests will be safe to apply in case of network errors, socket errors and timeouts, etc. We recommend using UUID version 4 for the key.
Path parameters
orderId
The order ID string that was obtained when the order session was created.
{
"authorizeStatus": "authorized",
"captured": [],
"capturedAmount": {
"amount": "0.00",
"currency": "SEK",
"formatted": "0.00",
"formattedWithCurrency": "SEK 0.00",
"minorUnits": 0
},
"createdAt": "2023-02-12T12:43:33.440871Z",
"customer": { ... },
"events": [
{
"amount": {
"amount": "0.00",
"currency": "SEK",
"formatted": "0.00",
"formattedWithCurrency": "SEK 0.00",
"minorUnits": 0
},
"createdAt": "2023-02-14T14:51:53.661169Z",
"id": "oe_256b7BT2LSdQwSvCXcnNEQymwpE",
"ledgerId": "in_250hGES3gXxcGLA6eqnx57VTTKx",
"orderId": "or_250hEHuICzmRgPBiADOOD9x4aAO",
"type": "extendExpiry"
},
{
"amount": {
"amount": "0.00",
"currency": "SEK",
"formatted": "0.00",
"formattedWithCurrency": "SEK 0.00",
"minorUnits": 0
},
"createdAt": "2023-02-12T12:43:34.440871Z",
"id": "oe_250hGGKtr3tFtwxRXG9EtwjHiE5",
"ledgerId": "in_250hGES3gXxcGLA6eqnx57VTTKx",
"orderId": "or_250hEHuICzmRgPBiADOOD9x4aAO",
"type": "readyForCapture"
},
{
"amount": {
"amount": "111.00",
"currency": "SEK",
"formatted": "111.00",
"formattedWithCurrency": "SEK 111.00",
"minorUnits": 11100
},
"createdAt": "2023-02-12T12:43:33.440871Z",
"id": "oe_250hGGKtr3tFtwxRXG9EtwjHiE5",
"ledgerId": "in_250hGES3gXxcGLA6eqnx57VTTKx",
"orderId": "or_250hEHuICzmRgPBiADOOD9x4aAO",
"type": "create"
}
],
"expiresAt": "2023-03-03T12:43:33.440871Z",
"id": "or_1wRrERC3y6bnRIzA9lKRGJzp9w0",
"merchantId": "ac_1xWqkkS5aIbxCJsoseRhSd0OJyD",
"merchantReference": "or_1wRrERC3y6bnRIzA9lKRGJzp9w0",
"orderAmount": {
"amount": "111.00",
"currency": "SEK",
"formatted": "111.00",
"formattedWithCurrency": "SEK 111.00",
"minorUnits": 11100
},
"orderReference": "CTLDY7B3",
"paymentMethod": {
"provider": "ledyer",
"type": "invoice"
},
"refunded": [],
"refundedAmount": {
"amount": "0.00",
"currency": "SEK",
"formatted": "0.00",
"formattedWithCurrency": "SEK 0.00",
"minorUnits": 0
},
"riskProfile": {
"tags": []
},
"status": [
"uncaptured"
],
"storeId": "343096764",
"uncaptured": { ... },
"uncapturedAmount": {
"amount": "111.00",
"currency": "SEK",
"formatted": "111.00",
"formattedWithCurrency": "SEK 111.00",
"minorUnits": 11100
},
"updatedAt": "2023-02-14T14:51:53.661169Z"
}
events
array of eventsA list of event objects, or snapshots on the order.
Each object contains an amount
object with the strings amount
, currency
formatted
, formattedWithCurrency
and integer minorUnits
pertaining to the event.
The event object also contains the date string createdAt
as well as orderId
and ledgerId
, and finally the event type
.
Events can have one of the following types:
acknowledge
: Order has been acknowledged.authorize
: Order has been authorized.cancel
: Order has been cancelled.create
: Order has been created.edit
: The order lines etc have been edited since first authorized.editCustomer
: The customer details of the order have been edited.editPaymentMethod
: The payment method of the order has been changed.extendExpiry
: The expiry date of the order has been extended at least once.fullCapture
: All order lines have been captured.fullRefund
: All order lines have been added to a credit invoice.paid
: Order has been paid.partialCapture
: Some of the order lines have been captured.partialRefund
: Some of the order lines have been added to a credit invoice.readyForCapture
: Order has been made ready for capture.setReference
: The merchant's order reference has been updated.
updatedAt
stringThe timestamp of the latest added event under events
.