Skip to content
Get started

List History

GET/invoices/{id}/history

Gets the version history of an invoice

Path ParametersExpand Collapse
id: string

Invoice ID

ReturnsExpand Collapse
data: array of object { id, created, status, 5 more }
id: string

Unique identifier for the invoice

created: string

ISO 8601 timestamp when the invoice was created

formatdate-time
status: "active"

The status of the invoice

version: number

Version number of this invoice snapshot

workspaceId: string

Workspace ID this invoice belongs to

diff: optional array of object { item, op } or object { id, new_amount, old_amount, op } or object { item, op }

Cumulative diff of changes applied to the invoice

Accepts one of the following:
AddDiffEntry = object { item, op }
item: object { id, amount, currencyCode, 4 more }

Invoice line item object

id: string

Unique identifier for the line item

amount: string

Amount in smallest currency unit (represented as string for bigint)

currencyCode: "ADA" or "BTC" or "DAI" or 176 more

Currency code (ISO 4217 or crypto)

Accepts one of the following:
"ADA"
"BTC"
"DAI"
"ETH"
"SOL"
"USDC"
"USDT"
"USDG"
"EURC"
"CADC"
"CADT"
"XLM"
"UNI"
"BCH"
"LTC"
"AAVE"
"LINK"
"MATIC"
"PTS"
"AED"
"AFN"
"ALL"
"AMD"
"ANG"
"AOA"
"ARS"
"AUD"
"AWG"
"AZN"
"BAM"
"BBD"
"BDT"
"BGN"
"BHD"
"BIF"
"BMD"
"BND"
"BOB"
"BRL"
"BSD"
"BTN"
"BWP"
"BYR"
"BZD"
"CAD"
"CDF"
"CHF"
"CLP"
"CNY"
"COP"
"CRC"
"CUC"
"CUP"
"CVE"
"CZK"
"DJF"
"DKK"
"DOP"
"DZD"
"EGP"
"ERN"
"ETB"
"EUR"
"FJD"
"FKP"
"GBP"
"GEL"
"GGP"
"GHS"
"GIP"
"GMD"
"GNF"
"GTQ"
"GYD"
"HKD"
"HNL"
"HRK"
"HTG"
"HUF"
"IDR"
"ILS"
"IMP"
"INR"
"IQD"
"IRR"
"ISK"
"JMD"
"JOD"
"JPY"
"KES"
"KGS"
"KHR"
"KMF"
"KPW"
"KRW"
"KWD"
"KYD"
"KZT"
"LAK"
"LBP"
"LKR"
"LRD"
"LSL"
"LYD"
"MAD"
"MDL"
"MGA"
"MKD"
"MMK"
"MNT"
"MOP"
"MUR"
"MVR"
"MWK"
"MXN"
"MYR"
"MZN"
"NAD"
"NGN"
"NIO"
"NOK"
"NPR"
"NZD"
"OMR"
"PAB"
"PEN"
"PGK"
"PHP"
"PKR"
"PLN"
"PYG"
"QAR"
"RON"
"RSD"
"RUB"
"RWF"
"SAR"
"SBD"
"SCR"
"SDG"
"SEK"
"SGD"
"SHP"
"SLL"
"SOS"
"SPL"
"SRD"
"SVC"
"SYP"
"STN"
"SZL"
"THB"
"TJS"
"TMT"
"TND"
"TOP"
"TRY"
"TTD"
"TVD"
"TWD"
"TZS"
"UAH"
"UGX"
"USD"
"UYU"
"UZS"
"VEF"
"VND"
"VUV"
"WST"
"XAF"
"XCD"
"XOF"
"XPF"
"YER"
"ZAR"
"ZMW"
"LOGICAL"
"CUSTOM"
description: string

Description of the line item

product_id: string

ID of the product/catalog item

type: "payin" or "payout"

The type of the line item

Accepts one of the following:
"payin"
"payout"
user_id: string

External ID of the user associated with this line item

op: "add"

A line item was added

UpdateDiffEntry = object { id, new_amount, old_amount, op }
id: string

ID of the updated line item

new_amount: string

New amount after the update

old_amount: string

Amount before the update

op: "update"

A line item was updated

DeleteDiffEntry = object { item, op }
item: object { id, amount, currencyCode, 4 more }

Invoice line item object

id: string

Unique identifier for the line item

amount: string

Amount in smallest currency unit (represented as string for bigint)

currencyCode: "ADA" or "BTC" or "DAI" or 176 more

Currency code (ISO 4217 or crypto)

Accepts one of the following:
"ADA"
"BTC"
"DAI"
"ETH"
"SOL"
"USDC"
"USDT"
"USDG"
"EURC"
"CADC"
"CADT"
"XLM"
"UNI"
"BCH"
"LTC"
"AAVE"
"LINK"
"MATIC"
"PTS"
"AED"
"AFN"
"ALL"
"AMD"
"ANG"
"AOA"
"ARS"
"AUD"
"AWG"
"AZN"
"BAM"
"BBD"
"BDT"
"BGN"
"BHD"
"BIF"
"BMD"
"BND"
"BOB"
"BRL"
"BSD"
"BTN"
"BWP"
"BYR"
"BZD"
"CAD"
"CDF"
"CHF"
"CLP"
"CNY"
"COP"
"CRC"
"CUC"
"CUP"
"CVE"
"CZK"
"DJF"
"DKK"
"DOP"
"DZD"
"EGP"
"ERN"
"ETB"
"EUR"
"FJD"
"FKP"
"GBP"
"GEL"
"GGP"
"GHS"
"GIP"
"GMD"
"GNF"
"GTQ"
"GYD"
"HKD"
"HNL"
"HRK"
"HTG"
"HUF"
"IDR"
"ILS"
"IMP"
"INR"
"IQD"
"IRR"
"ISK"
"JMD"
"JOD"
"JPY"
"KES"
"KGS"
"KHR"
"KMF"
"KPW"
"KRW"
"KWD"
"KYD"
"KZT"
"LAK"
"LBP"
"LKR"
"LRD"
"LSL"
"LYD"
"MAD"
"MDL"
"MGA"
"MKD"
"MMK"
"MNT"
"MOP"
"MUR"
"MVR"
"MWK"
"MXN"
"MYR"
"MZN"
"NAD"
"NGN"
"NIO"
"NOK"
"NPR"
"NZD"
"OMR"
"PAB"
"PEN"
"PGK"
"PHP"
"PKR"
"PLN"
"PYG"
"QAR"
"RON"
"RSD"
"RUB"
"RWF"
"SAR"
"SBD"
"SCR"
"SDG"
"SEK"
"SGD"
"SHP"
"SLL"
"SOS"
"SPL"
"SRD"
"SVC"
"SYP"
"STN"
"SZL"
"THB"
"TJS"
"TMT"
"TND"
"TOP"
"TRY"
"TTD"
"TVD"
"TWD"
"TZS"
"UAH"
"UGX"
"USD"
"UYU"
"UZS"
"VEF"
"VND"
"VUV"
"WST"
"XAF"
"XCD"
"XOF"
"XPF"
"YER"
"ZAR"
"ZMW"
"LOGICAL"
"CUSTOM"
description: string

Description of the line item

product_id: string

ID of the product/catalog item

type: "payin" or "payout"

The type of the line item

Accepts one of the following:
"payin"
"payout"
user_id: string

External ID of the user associated with this line item

op: "delete"

A line item was deleted

lineItems: optional array of object { id, amount, currencyCode, 4 more }

List of line items associated with this invoice

id: string

Unique identifier for the line item

amount: string

Amount in smallest currency unit (represented as string for bigint)

currencyCode: "ADA" or "BT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
"UZS"
"VEF"
"VND"
"VUV"
"WST"
"XAF"
"XCD"
"XOF"
"XPF"
"YER"
"ZAR"
"ZMW"
"LOGICAL"
"CUSTOM"
description: string

Description of the line item

product_id: string

ID of the product/catalog item

type: "payin" or "payout"

The type of the line item

Accepts one of the following:
"payin"
"payout"
user_id: string

External ID of the user associated with this line item

modified: optional string

ISO 8601 timestamp when the invoice was last modified

formatdate-time

List History

curl https://api.us-west-2.fragment.dev/invoices/$ID/history
{
  "data": [
    {
      "id": "inv_1234567890",
      "created": "2024-01-13T00:00:00Z",
      "status": "active",
      "version": 1,
      "workspaceId": "ws_1234567890",
      "diff": [
        {
          "item": {
            "id": "item_1234567890",
            "amount": "1000",
            "currencyCode": "USD",
            "description": "Professional services for January 2026",
            "product_id": "prod_1234567890",
            "type": "payout",
            "user_id": "user_ext_456"
          },
          "op": "add"
        }
      ],
      "lineItems": [
        {
          "id": "item_1234567890",
          "amount": "1000",
          "currencyCode": "USD",
          "description": "Professional services for January 2026",
          "product_id": "prod_1234567890",
          "type": "payout",
          "user_id": "user_ext_456"
        }
      ],
      "modified": "2024-01-13T00:00:00Z"
    }
  ]
}
Returns Examples
{
  "data": [
    {
      "id": "inv_1234567890",
      "created": "2024-01-13T00:00:00Z",
      "status": "active",
      "version": 1,
      "workspaceId": "ws_1234567890",
      "diff": [
        {
          "item": {
            "id": "item_1234567890",
            "amount": "1000",
            "currencyCode": "USD",
            "description": "Professional services for January 2026",
            "product_id": "prod_1234567890",
            "type": "payout",
            "user_id": "user_ext_456"
          },
          "op": "add"
        }
      ],
      "lineItems": [
        {
          "id": "item_1234567890",
          "amount": "1000",
          "currencyCode": "USD",
          "description": "Professional services for January 2026",
          "product_id": "prod_1234567890",
          "type": "payout",
          "user_id": "user_ext_456"
        }
      ],
      "modified": "2024-01-13T00:00:00Z"
    }
  ]
}