tenant-transaction-read
or tenant-admin
Gets an Order Instruction by the orderRef
and instructionRef
.
OK - Returns the Instruction response. - Instruction response for Card Payment using Stripe with Refund - Instruction response for Bacs Direct Debit using Bottomline with Chargeback
Bad Request - Validation error response, containing errors such as:
All other managed 4xx and 5xx errors
Card payment with refund
{- "_links": {
- "self": {
- "href": "/v1/order-management/ZNMiwTzYnl/instruction/QA-PWA4NqEu_RR8"
}, - "financialInstruments": [
- {
- "href": "/v1/customer-vault/UYxKotbKg/financial-instrument/fdadd310-cbeb-0d30-da0f-f33c36e35b96",
- "name": "fdadd310-cbeb-0d30-da0f-f33c36e35b96"
}
], - "transactions": [
- {
- "href": "/v1/customer-vault/UYxKotbKg/financial-instrument/fdadd310-cbeb-0d30-da0f-f33c36e35b96/transaction/47325e85-0118-4f47-a52e-3b933935c6c3",
- "name": "47325e85-0118-4f47-a52e-3b933935c6c3"
}
]
}, - "created": 1740038685016,
- "lastUpdated": 1740038722063,
- "direction": "DEBIT",
- "status": "COMPLETED",
- "customerRef": "UYxKotbKg",
- "amount": 50.01,
- "currency": "CHF",
- "country": "CH",
- "settledByDate": "2025-02-20",
- "forecastedSettlementDate": "2025-02-20",
- "actualSettlementDate": "2025-02-20",
- "executionTimestamp": null,
- "financialInstrument": {
- "financialInstrumentId": "fdadd310-cbeb-0d30-da0f-f33c36e35b96",
- "source": "TRANSACTION",
- "canUpdate": false,
- "sourceFlow": "OnSession"
}, - "scheme": {
- "schemeId": "093199805B8A74CE118F2544B0AA391A",
- "source": "TRANSACTION",
- "canUpdate": false
}, - "metadata": {
- "paymentDescriptorField1": "ABC"
}, - "transaction": {
- "transactionId": "47325e85-0118-4f47-a52e-3b933935c6c3",
- "financialInstrumentId": "fdadd310-cbeb-0d30-da0f-f33c36e35b96",
- "createdTimestamp": 1740038717184,
- "lastUpdatedTimestamp": 1740038717184,
- "amount": 50.01,
- "netAmount": 26.01,
- "status": "SUCCESS",
- "additionalInformation": "",
- "app": {
- "appId": "STRIPE",
- "appTransactionId": "pi_3QuUkoHm8hoYQJyN1I8rzoXy",
- "appBatchId": null,
- "supportDetails": {
- "paymentDescriptorField1": "ABC",
- "customerId": "cus_Ro6yDv5DZsnHW7"
}
}, - "refunds": [
- {
- "refundId": "a42ad429-345e-404d-af14-4d9892d3a752",
- "createdTimestamp": 1740038724213,
- "lastUpdatedTimestamp": 1740038724213,
- "status": "Completed",
- "amount": 24,
- "refundReason": "On session refund success",
- "failureReasonCode": null,
- "failureDescription": null
}
], - "chargebacks": [ ],
- "processingDetails": {
- "channel": "eCom",
- "authenticationFlow": "3DS Challenge"
}
}, - "failed": null,
- "cancelled": null
}
tenant-transaction-write
or tenant-admin
Updates a new Instruction by orderRef
and instructionRef
.
No Content.
Bad Request - Validation error response, containing errors such as:
All other managed 4xx and 5xx errors
{- "financialInstrumentId": "35596f91-fea9-4297-b70b-01fdad24e25a",
- "amount": 20,
- "currency": "GBP",
- "country": "GB",
- "settledByDate": "2019-08-24",
- "schemeId": "ef1c9dbe-017b-4011-8bd1-352897f8dfef",
- "metadata": {
- "customKey1": "custom string 1"
}
}
Order {orderRef} does not exist.
{- "timestamp": 1692016778499,
- "correlationId": "0HMB2TA322CA7:00000001",
- "errors": [
- {
- "errorCode": "ORDER_NOT_FOUND",
- "message": "Order [orderRef] does not exist.",
- "messageTemplate": "Order {orderRef} does not exist.",
- "metadata": {
- "orderRef": "orderRef"
}
}
]
}
tenant-transaction-write
or tenant-admin
Create a new Order Instruction for the specified orderRef
.
No Content.
Bad Request - Validation error response, containing errors such as:
All other managed 4xx and 5xx errors
{- "instructionRef": "instruction1",
- "customerRef": "customer1",
- "direction": "DEBIT",
- "financialInstrumentId": "35596f91-fea9-4297-b70b-01fdad24e25a",
- "amount": 20,
- "currency": "GBP",
- "country": "GB",
- "settledByDate": "2019-08-24",
- "schemeId": "ef1c9dbe-017b-4011-8bd1-352897f8dfef",
- "metadata": {
- "customKey1": "custom string 1"
}
}
Order {orderRef} does not exist.
{- "timestamp": 1692016778499,
- "correlationId": "0HMB2TA322CA7:00000001",
- "errors": [
- {
- "errorCode": "ORDER_NOT_FOUND",
- "message": "Order [orderRef] does not exist.",
- "messageTemplate": "Order {orderRef} does not exist.",
- "metadata": {
- "orderRef": "orderRef"
}
}
]
}
tenant-transaction-write
or tenant-admin
Cancels an Instruction.
No Content.
Bad Request - Validation error response, containing errors such as:
All other managed 4xx and 5xx errors
{- "reason": "Subscription cancelled."
}
Order {orderRef} does not exist.
{- "timestamp": 1692016778499,
- "correlationId": "0HMB2TA322CA7:00000001",
- "errors": [
- {
- "errorCode": "ORDER_NOT_FOUND",
- "message": "Order [orderRef] does not exist.",
- "messageTemplate": "Order {orderRef} does not exist.",
- "metadata": {
- "orderRef": "orderRef"
}
}
]
}
tenant-transaction-read
or tenant-admin
Gets an Order by the orderRef
.
OK - Returns the Order response.
Bad Request - Validation error response, containing errors such as:
All other managed 4xx and 5xx errors
{- "_links": {
- "self": {
- "href": "/v1/order-management/order1"
}, - "instructions": [
- {
- "href": "/v1/order-management/order1/instruction/instruction1",
- "name": "instruction1"
}
]
}, - "created": 1691752640673,
- "instructionRefs": [
- "instruction1"
], - "metadata": {
- "customKey1": "custom string 1"
}
}
tenant-transaction-write
or tenant-admin
Create a new Order.
If you create the Order without any instructions
then the response will be 201 - Created
.
If you create the Order with instructions
then the response will be 202 - Accepted
.
Created.
Accepted.
Bad Request - Validation error response, containing errors such as:
All other managed 4xx and 5xx errors
{- "orderRef": "order1",
- "instructions": [
- {
- "instructionRef": "instruction1",
- "customerRef": "customer1",
- "direction": "DEBIT",
- "financialInstrumentId": "35596f91-fea9-4297-b70b-01fdad24e25a",
- "amount": 20,
- "currency": "GBP",
- "country": "GB",
- "settledByDate": "2019-08-24",
- "schemeId": "ef1c9dbe-017b-4011-8bd1-352897f8dfef",
- "metadata": {
- "customKey1": "custom string 1"
}
}, - {
- "instructionRef": "instruction2",
- "customerRef": "customer1",
- "direction": "DEBIT",
- "financialInstrumentId": "35596f91-fea9-4297-b70b-01fdad24e25a",
- "amount": 5,
- "currency": "GBP",
- "country": "GB",
- "settledByDate": "2019-08-24",
- "schemeId": "ef1c9dbe-017b-4011-8bd1-352897f8dfef",
- "metadata": {
- "customKey1": "custom string 1"
}
}
], - "metadata": {
- "customKey1": "custom string 1"
}
}
Order {orderRef} already exists.
{- "timestamp": 1692016778499,
- "correlationId": "0HMB2TA322CA7:00000001",
- "errors": [
- {
- "errorCode": "ORDER_ALREADY_EXISTS",
- "message": "Order [orderRef] already exists.",
- "messageTemplate": "Order {orderRef} already exists.",
- "metadata": {
- "orderRef": "orderRef"
}
}
]
}
tenant-transaction-write
or tenant-admin
Updates the Orders metadata
by orderRef
.
No Content.
Bad Request - Validation error response, containing errors such as:
All other managed 4xx and 5xx errors
{- "customKey1": "custom string 1",
- "customKey2": "custom string 2",
- "customKey3": "custom string 3"
}
Order {orderRef} does not exist.
{- "timestamp": 1692016778499,
- "correlationId": "0HMB2TA322CA7:00000001",
- "errors": [
- {
- "errorCode": "ORDER_NOT_FOUND",
- "message": "Order [orderRef] does not exist.",
- "messageTemplate": "Order {orderRef} does not exist.",
- "metadata": {
- "orderRef": "orderRef"
}
}
]
}
tenant-transaction-write
or tenant-admin
Deletes the Orders metadata
by orderRef
.
No Content.
Bad Request - Validation error response, containing errors such as:
All other managed 4xx and 5xx errors
Order {orderRef} does not exist.
{- "timestamp": 1692016778499,
- "correlationId": "0HMB2TA322CA7:00000001",
- "errors": [
- {
- "errorCode": "ORDER_NOT_FOUND",
- "message": "Order [orderRef] does not exist.",
- "messageTemplate": "Order {orderRef} does not exist.",
- "metadata": {
- "orderRef": "orderRef"
}
}
]
}
tenant-transaction-write
or tenant-admin
Claims a Reward by the customerRef
and instructionRef
.
Gone.
All other managed 4xx and 5xx errors
{- "rewardId": "3a15d6a9-82bb-4ffe-83c4-4435038d5367"
}
{- "status": 401,
- "title": "Unauthorized",
- "detail": "Invalid token",
- "instance": "/v1/customer-vault/customer1/international-bank-account/",
- "trace": {
- "timestamp": "2023-01-31T23:56:21Z",
- "requestId": "4487062e-52db-4d89-b46b-7035d681cb40"
}
}