vendor credits retrieve

GET {{baseUrl}}/vendor-credits/:id

Returns a VendorCredit object with the given id.

Request Params

KeyDatatypeRequiredDescription
expandstringWhich relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
include_remote_databooleanWhether to include the original data Merge fetched from the third-party to produce these models.

HEADERS

KeyDatatypeRequiredDescription
X-Account-Tokenstring(Required) Token identifying the end user.
Acceptstring

RESPONSES

status: OK

{"id":"ecbe05ac-62a3-46c5-ab31-4b478b37d1b4","remote_id":"088899","remote_data":[{"path":"cillum in cupidatat laboris","data":{"exercitation4":{}}},{"path":"eu aliquip fugiat","data":{"consequat_":{}}}],"number":"6","transaction_date":"2020-03-31T00:00:00Z","vendor":"3d263469-51a1-4766-9205-f6c997826be1","total_amount":10000,"currency":"UYI","exchange_rate":"2.9","company":"595c8f97-2ac4-45b7-b000-41bdf43240b5","lines":[{"remote_id":"121222","net_amount":25.54,"tracking_category":"b38c59b0-a9d7-4740-b1ee-5436c6751e3d","description":"Gifted Merge Credit","account":"9d892439-5fab-4dbb-8bd8-34f7f96c7912"},{"remote_id":"121223","net_amount":10,"tracking_category":"b38c59b0-a9d7-4740-b1ee-5436c6751e3d","description":"Refund for overpayment","account":"9d892439-5fab-4dbb-8bd8-34f7f96c7912"}],"remote_was_deleted":true}