curl --request POST \
--url https://api.light.inc/rest/ext/v1/card-transactions/{transactionId}/post
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"companyEntityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cardBalanceAccountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cardId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"originalAmount": 123,
"originalCurrency": "USD",
"amount": 123,
"currency": "USD",
"direction": "DEBIT",
"transactionReason": "APPROVED",
"purchaseType": "ATM",
"status": "AUTHORIZED",
"type": "PAYMENT",
"merchant": {
"name": "<string>",
"country": "UNDEFINED",
"zipcode": "<string>",
"id": "<string>",
"mcc": "<string>",
"acquirerId": "<string>"
},
"receiptDocumentKey": "<string>",
"lines": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"transactionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"accountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"taxCodeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"costCenterId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": 123,
"netAmount": 123,
"taxAmount": 123,
"description": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"customProperties": [
{
"groupId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"groupInternalName": "<string>",
"values": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"groupId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"groupInternalName": "<string>",
"companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"internalName": "<string>",
"label": "<string>",
"context": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
]
}
]
}
],
"failureContext": {
"type": "BAD_REQUEST",
"errors": [
{
"type": "<string>",
"clientMessage": "<string>",
"message": "<string>",
"path": [
"<string>"
],
"context": {}
}
],
"stackTrace": [
{
"classLoaderName": "<string>",
"moduleName": "<string>",
"moduleVersion": "<string>",
"methodName": "<string>",
"fileName": "<string>",
"lineNumber": 123,
"nativeMethod": true,
"className": "<string>"
}
],
"message": "<string>",
"suppressed": [
{
"stackTrace": [
{
"classLoaderName": "<string>",
"moduleName": "<string>",
"moduleVersion": "<string>",
"methodName": "<string>",
"fileName": "<string>",
"lineNumber": 123,
"nativeMethod": true,
"className": "<string>"
}
],
"message": "<string>",
"localizedMessage": "<string>"
}
],
"localizedMessage": "<string>",
"name": "<string>"
},
"editStatus": "ALL_EDITS_ALLOWED",
"description": "<string>",
"performedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"updatedBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"customProperties": [
{
"groupId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"groupInternalName": "<string>",
"values": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"groupId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"groupInternalName": "<string>",
"companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"internalName": "<string>",
"label": "<string>",
"context": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
]
}
]
}
Posts the given card transaction
curl --request POST \
--url https://api.light.inc/rest/ext/v1/card-transactions/{transactionId}/post
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"companyEntityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cardBalanceAccountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cardId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"originalAmount": 123,
"originalCurrency": "USD",
"amount": 123,
"currency": "USD",
"direction": "DEBIT",
"transactionReason": "APPROVED",
"purchaseType": "ATM",
"status": "AUTHORIZED",
"type": "PAYMENT",
"merchant": {
"name": "<string>",
"country": "UNDEFINED",
"zipcode": "<string>",
"id": "<string>",
"mcc": "<string>",
"acquirerId": "<string>"
},
"receiptDocumentKey": "<string>",
"lines": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"transactionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"accountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"taxCodeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"costCenterId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": 123,
"netAmount": 123,
"taxAmount": 123,
"description": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"customProperties": [
{
"groupId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"groupInternalName": "<string>",
"values": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"groupId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"groupInternalName": "<string>",
"companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"internalName": "<string>",
"label": "<string>",
"context": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
]
}
]
}
],
"failureContext": {
"type": "BAD_REQUEST",
"errors": [
{
"type": "<string>",
"clientMessage": "<string>",
"message": "<string>",
"path": [
"<string>"
],
"context": {}
}
],
"stackTrace": [
{
"classLoaderName": "<string>",
"moduleName": "<string>",
"moduleVersion": "<string>",
"methodName": "<string>",
"fileName": "<string>",
"lineNumber": 123,
"nativeMethod": true,
"className": "<string>"
}
],
"message": "<string>",
"suppressed": [
{
"stackTrace": [
{
"classLoaderName": "<string>",
"moduleName": "<string>",
"moduleVersion": "<string>",
"methodName": "<string>",
"fileName": "<string>",
"lineNumber": 123,
"nativeMethod": true,
"className": "<string>"
}
],
"message": "<string>",
"localizedMessage": "<string>"
}
],
"localizedMessage": "<string>",
"name": "<string>"
},
"editStatus": "ALL_EDITS_ALLOWED",
"description": "<string>",
"performedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"updatedBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"customProperties": [
{
"groupId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"groupInternalName": "<string>",
"values": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"groupId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"groupInternalName": "<string>",
"companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"internalName": "<string>",
"label": "<string>",
"context": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
]
}
]
}
default response
The response is of type object
.