POST /landed-cost-purchase-invoice-items.json

POST /landed-cost-purchase-invoice-items.json
application/json

Body Required

  • amount number Required

    Amount

    Default value is 0.

  • exchangeIso string | null

    Exchange iso

  • exchangeRate number(float) | null

    Exchange rate

  • landedCostId integer(int32) Required

    Landed cost

  • purchaseInvoiceItemId integer(int32) Required

    Purchase invoice item

Responses

  • 200 application/json

    Successful response

    Hide response attributes Show response attributes object
    • amount number Required

      Amount

      Default value is 0.

    • createdAt string(date-time)

      Created at

    • exchangeIso string | null

      Exchange iso

    • exchangeRate number(float) | null

      Exchange rate

    • id integer(int32)

      Id

    • landedCostId integer(int32) Required

      Landed cost

    • purchaseInvoiceItemId integer(int32) Required

      Purchase invoice item

    • updatedAt string(date-time)

      Updated at

POST /landed-cost-purchase-invoice-items.json
curl \
 --request POST 'http://api.example.com/v1/landed-cost-purchase-invoice-items.json' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"amount":0,"exchangeIso":"string","exchangeRate":42.0,"landedCostId":42,"purchaseInvoiceItemId":42}'
Request examples
{
  "amount": 0,
  "exchangeIso": "string",
  "exchangeRate": 42.0,
  "landedCostId": 42,
  "purchaseInvoiceItemId": 42
}
Response examples (200)
{
  "amount": 0,
  "createdAt": "2025-05-04T09:42:00Z",
  "exchangeIso": "string",
  "exchangeRate": 42.0,
  "id": 42,
  "landedCostId": 42,
  "purchaseInvoiceItemId": 42,
  "updatedAt": "2025-05-04T09:42:00Z"
}