Update Ledger Entry
PUT {{baseUrl}}/ledger-entries/:ledger-entry-id
Update a Ledger Entry
Request Body
{"data"=>{"ledgerEntryId"=>"41fdd56b-661f-488a-abe9-635509c18430", "buyer"=>{"externalBuyerId"=>"795fce4a-f13e-450d-a384-718577e1cde4", "buyerId"=>"fbac6854-c783-415d-a206-2d41f9374bfe"}, "seller"=>{"externalSellerId"=>"8f4a3a95-5cd5-4b70-8c25-0a0c7ef9e1e9", "sellerId"=>"64f641c0-51cb-42b1-b62c-2be3e9c613d3"}, "customerRole"=>"Seller", "documentType"=>"Invoice", "externalLedgerEntryId"=>"c9c75d82-4572-438d-9a67-a8461b199a50", "documentNumber"=>"INV001", "documentStatus"=>{"value"=>"Paid"}, "documentDate"=>"2022-07-26", "documentUploadDate"=>"2022-07-26", "documentCreatedDateTime"=>"2022-07-26T09:00:00Z", "documentUpdatedDateTime"=>"2022-07-26T10:00:00Z", "documentDueDate"=>"2022-08-26", "forecastPayDate"=>"2022-08-26", "originalAmount"=>{"currency"=>"USD", "amount"=>"10000.00"}, "netAmount"=>{"currency"=>"USD", "amount"=>"9000.00"}, "goodsDescription"=>"10,000 widgets", "fundedStatus"=>{"value"=>"Settled"}, "payments"=>[{"type"=>"Buyer", "paymentAmount"=>{"currency"=>"USD", "amount"=>"5000.00"}, "paidDate"=>"2022-08-26", "paymentCreatedDateTime"=>"2022-08-26T09:00:00Z"}, {"type"=>"Buyer", "paymentAmount"=>{"currency"=>"USD", "amount"=>"4000.00"}, "paidDate"=>"2022-08-20", "paymentCreatedDateTime"=>"2022-08-20T09:00:00Z"}], "context"=>"Inlife"}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
X-HSBC-Request-Correlation-Id | string | (Required) Correlation Id | |
X-HSBC-Request-Idempotency-Key | string | (Required) Idempotency Key | |
X-HSBC-CountryCode | string | (Required) ISO Country Code | |
X-HSBC-PROFILEID | string | (Required) Partner Profile Id | |
Obo-Profile-Id | string | (Required) Customer Profile Id | |
X-HSBC-E2E-Trust-Token | string | (Required) | |
Content-Type | string | ||
Accept | string | ||
Authorization | string | Authorization Header |
RESPONSES
status: OK
{"data":{"ledgerEntryId":"41fdd56b-661f-488a-abe9-635509c18430","buyer":{"externalBuyerId":"795fce4a-f13e-450d-a384-718577e1cde4","buyerId":"fbac6854-c783-415d-a206-2d41f9374bfe"},"seller":{"externalSellerId":"8f4a3a95-5cd5-4b70-8c25-0a0c7ef9e1e9","sellerId":"64f641c0-51cb-42b1-b62c-2be3e9c613d3"},"customerRole":"Seller","documentType":"Invoice","externalLedgerEntryId":"c9c75d82-4572-438d-9a67-a8461b199a50","documentNumber":"INV001","documentStatus":{"value":"Paid"},"documentDate":"2022-07-26","documentUploadDate":"2022-07-26","documentCreatedDateTime":"2022-07-26T09:00:00Z","documentUpdatedDateTime":"2022-07-26T10:00:00Z","documentDueDate":"2022-08-26","forecastPayDate":"2022-08-26","originalAmount":{"currency":"USD","amount":"10000.00"},"netAmount":{"currency":"USD","amount":"9000.00"},"goodsDescription":"10,000 widgets","fundedStatus":{"value":"Settled"},"payments":[{"type":"Buyer","paymentAmount":{"currency":"USD","amount":"5000.00"},"paidDate":"2022-08-26","paymentCreatedDateTime":"2022-08-26T09:00:00Z"},{"type":"Buyer","paymentAmount":{"currency":"USD","amount":"4000.00"},"paidDate":"2022-08-20","paymentCreatedDateTime":"2022-08-20T09:00:00Z"}],"context":"Inlife"},"links":{"self":{"href":"/ledger-entries/41fdd56b-661f-488a-abe9-635509c18430"}}}