Idempotency-Key string A unique key for safely retrying a request without duplicating work.
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 Idempotency-Key string orderId string {
"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 A list of order event snapshots. Each event includes an amount object with amount, currency, formatted, formattedWithCurrency, and minorUnits, plus createdAt, orderId, ledgerId, and type.
Supported type values:
acknowledge: Order has been acknowledged.authorize: Order has been authorized.cancel: Order has been cancelled.create: Order has been created.edit: Order lines and related order details have been edited since
first authorization.editCustomer: Customer details have been edited.editPaymentMethod: Payment method has been changed.extendExpiry: Order expiry has been extended at least once.fullCapture: All order lines have been captured.fullRefund: All order lines have been added to a credit invoice.invoiceRecourse: The customer paid the invoice directly to the
merchant.paid: Order has been paid.partialCapture: Some order lines have been captured.partialRefund: Some order lines have been added to a credit invoice.readyForCapture: Order has been made ready for capture.setReference: Merchant order reference has been updated.updatedAt string