Skip to main content

Payments

EntityPayment

Payments track payment transactions linked to Invoices or Subscriptions.

Endpoints

List

GET/v1/odata/Payment

Get by ID

GET/v1/odata/Payment({id})

Create

POST/v1/odata/Payment

Update

PUT/v1/odata/Payment({id})

Delete

DELETE/v1/odata/Payment({id})

Fields

FieldTypeDescription
AmountDoublePayment amount
CurrencyStringCurrency code
ReferenceStringPayment reference
ProviderStringPayment provider
PayLinkStringPayment link URL
ExtraInfoStringAdditional information
MetadataStringPayment metadata (JSON)
CreatedAtDateTimeOffsetPayment creation timestamp
UpdatedAtDateTimeOffsetLast update timestamp

Relationships

RelationshipTarget EntityCardinalityDescription
InvoiceActivity.InvoiceN:1Linked invoice
SubscriptionActivity.SubscriptionN:1Linked subscription
PaymentMethodDatastore.PaymentMethodN:1Payment method
PaymentStatusDatastore.PaymentStatusN:1Payment status

Expanding Relationships

GET/v1/odata/Payment({id})?$expand=Invoice
GET/v1/odata/Payment({id})/Invoice