Baack

Payment Invoice

Browse the docs

Endpoints

  • CreatePOST/n/v1/paymentinvoice/

    Endpoint for managing payment invoices, both payable and receivable

    Baack allocates the URN and returns it in the response.

    Request body: Payment Invoice

    Responses

    201 Created
    returns Payment InvoiceCREATE_SUCCESS
    400 Bad request
    returns ErrorINVALID_REPRESENTATION
  • ReadGET/n/v1/paymentinvoice/{urn}

    Endpoint for managing payment invoices, both payable and receivable

    Parameters

    urn (path, required)

    String representation of a Unique Resource Name. Typically a UUID with 36 characters.

    Responses

    200 OK
    returns Payment InvoiceREAD_SUCCESS
    404 Not found
    returns ErrorNOT_FOUND
    curl -H "Authorization: Bearer $BAACK_API_TOKEN" \
      https://api.baack.co/n/v1/paymentinvoice/{urn}
  • UpdatePUT/n/v1/paymentinvoice/{urn}

    Endpoint for managing payment invoices, both payable and receivable

    Parameters

    urn (path, required)

    String representation of a Unique Resource Name. Typically a UUID with 36 characters.

    Request body: Payment Invoice

    Responses

    202
    returns Payment InvoiceUPDATE_SUCCESS
    400 Bad request
    returns ErrorREPRESENTATION_MISSING_REQUIRED_FIELD
  • DeleteDELETE/n/v1/paymentinvoice/{urn}

    Endpoint for managing payment invoices, both payable and receivable

    Parameters

    urn (path, required)

    String representation of a Unique Resource Name. Typically a UUID with 36 characters.

    Responses

    202
    DELETE_SUCCESS

Webhook

POSTyour destination URL

Subject: PAYMENT_INVOICE

Webhook for payment / invoice update events like the payment status changes

The payment / invoice webhook allows listening to state changes in the payment invoice. This can be used to drive experiences like triggering an email notification for the remitter or updating the customer profile of the recipient.

Body: Webhook Event

Your response

200
Return 200 status to indicate that data was received successfully

Fields

Payment Invoice fields
FieldTypeDescription
ownerCompany

Required on create.

.

remitterRemitter
identifiersarray of Payment Invoice Identifier

Ignored on update.

discountMoney
taxMoney
remittancesarray of Payment Invoice Remittance

Ignored on update.

subTotalMoney
fullyPaidTimestampstring (date-time)
updatedTimestampstring (date-time)
urlstring (uri)
urnstring (uuid)
lineItemTaxstring

One of: EXCLUSIVE, INCLUSIVE, NO_TAX

totalMoney
paidMoney
recipientRecipient
issuedTimestampstring (date-time)
refundedMoney
linesarray of Payment Invoice Line

Ignored on update.

dueTimestampstring (date-time)
currencyCodestring

One of: AED, AFN, ALL, AMD, ANG, AOA, ARS, AUD, AWG, AZN, BAM, BBD, BDT, BGN, BHD, BIF, BMD, BND, BOB, BRL, BSD, BTN, BWP, BYN, BYR, BZD, CAD, CDF, CHF, CLF, CLP, CNY, COP, CRC, CUC, CUP, CVE, CZK, DJF, DKK, DOP, DZD, EEK, EGP, ERN, ETB, EUR, FJD, FKP, GBP, GEL, GHS, GIP, GMD, GNF, GTQ, GYD, HKD, HNL, HRK, HTG, HUF, IDR, ILS, INR, IQD, IRR, ISK, JMD, JOD, JPY, KES, KGS, KHR, KMF, KPW, KRW, KWD, KYD, KZT, LAK, LBP, LKR, LRD, LSL, LTL, LVL, LYD, MAD, MDL, MGA, MKD, MMK, MNT, MOP, MRO, MRU, MUR, MVR, MWK, MXN, MXV, 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, SKK, SLE, SLL, SOS, SRD, STN, STD, SVC, SYP, SZL, THB, TJS, TMT, TND, TOP, TRY, TTD, TWD, TZS, UAH, UGX, USD, UYU, UZS, VEF, VES, VND, VUV, WST, XAF, XCD, XOF, XPF, YER, ZAR, ZMW, ZMK, ZWD

statusstring

One of: DRAFT, IN_REVIEW, AUTHORISED, PENDING, VOIDED, PAID, REFUNDED

Used by: Deal, Message Thread, Payment Invoice Line, Payment Invoice Remittance, Search Item

Payment Invoice Identifier

Payment invoice identifier e.g. invoice ID

Fields

Payment Invoice Identifier fields
FieldTypeDescription
urnstring (uuid)
domainstring
tokenstring

Used by: Payment Invoice

Recipient

The recipient representation is used to model a payment invoice recipient either as a company or identity.

Fields

Recipient fields
FieldTypeDescription
identityIdentity
companyCompany

Used by: Payment Invoice

Remitter

The remitter or payee is the company or identity which is making the payment in the context of a payment or invoice

Fields

Remitter fields
FieldTypeDescription
identityIdentity
companyCompany

Used by: Payment Invoice