Create

Creates a new statement without LIG IDs, starting in STAGED status. Requires payment vector, origin, and destination. | authz: org_type=[courier, forwarder], min_org_role=operator | (CreateStatementReq) -> (Statement1)

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
payment_vector_typeenumRequired
Payment vector type
Allowed values:
settlement_typeenumRequired
Settlement type for this statement
Allowed values:
payment_origin_org_idstringOptional

Payment origin org ID (on-CHRT org)

payment_origin_off_chrt_shipper_org_idstringOptional

Payment origin off-CHRT shipper org ID

payment_destination_org_idstringOptional

Payment destination org ID (on-CHRT org)

payment_destination_driver_idstringOptional
Payment destination driver ID

Response

Successful Response
schema_versioninteger
_idstring
settlement_typeenum
Allowed values:
owned_by_org_idstring

Must be a string starting with org_

payment_vector_typeenum
Allowed values:
line_item_group_idslist of strings
order_idslist of strings
order_short_idslist of strings
order_off_chrt_reference_idslist of strings
amountinteger
unitsenum
Allowed values:
staged_by_user_idstring

Must be a string starting with user_

payment_origin_org_idstring

Must be a string starting with org_

payment_origin_off_chrt_shipper_org_idstring
payment_destination_org_idstring

Must be a string starting with org_

payment_destination_driver_idstring
statusenum
Allowed values:
stripe_invoice_idstring
stripe_invoice_urlstring
stripe_invoice_created_by_user_idstring

Must be a string starting with user_

stripe_invoice_statusenum
staged_at_timestampdatetime
opened_at_timestampdatetime
paid_at_timestampdatetime
uncollectible_at_timestampdatetime
marked_open_by_user_idstring

Must be a string starting with user_

marked_paid_by_user_idstring

Must be a string starting with user_

marked_uncollectible_by_user_idstring

Must be a string starting with user_

Errors

422
Statements Create V1request Unprocessable Entity Error