Create an agreement for a tenant payment method
Create an agreement for a tenant payment method.
name identifies the agreement.
productUid must refer to a product of type NON_PHYSICAL. This is the product added to the order to carry the cost adjustment.
percentage is given in hundredths of a percent: 250 means 2,50 %. A positive percentage gives a negative cost, and a negative percentage gives a positive cost.
position is used to order the agreements when they are listed.
validFrom and validTo are both optional; null means the agreement has no limit in that direction.
tenantPaymentMethodAgreementUid is the primary key of the table. It is assigned a unique UUID but you can assign it your own ID if needed.
Required permissions: PAYMENT_METHOD
Access token recevied after user login with a deviceToken
Reference to a tenant.
^[A-Za-z0-9-_]+Reference to a tenant PaymentMethodUid.
^[A-Za-z0-9-_]+^[A-Za-z0-9-_]*Name of the agreement.
^[A-Za-z0-9-_]+Percentage used to calculate the cost adjustment, given in hundredths of a percent: 250 means 2,50 %. A positive percentage gives a negative cost, and a negative percentage gives a positive cost.
The agreement can be used from this point in time. Omit or send null for no start limit.
The agreement can be used until this point in time. Omit or send null for no end limit.
Sort order when the agreements are listed. Defaults to 0.
Whether the agreement can be used. Defaults to true.
An agreement configured on this payment method: a named pairing of a product with a percentage. Choosing one at payment adds a line to the order for that product, carrying a cost derived from the percentage. This response describes the configuration, so it also returns agreements that cannot currently be chosen — inactive ones, and ones outside their validity period. The product must be of type NON_PHYSICAL and must allow an order specific cost.
^[A-Za-z0-9-_]+Name of the agreement.
^[A-Za-z0-9-_]+Percentage used to calculate the cost adjustment, given in hundredths of a percent: 250 means 2,50 %. A positive percentage gives a negative cost, and a negative percentage gives a positive cost.
The agreement can be used from this point in time. Null means it has no start limit.
The agreement can be used until this point in time. Null means it has no end limit.
Sort order when the agreements are listed.
Whether the agreement can be used. An agreement that has been used should be deactivated rather than deleted.
POST /v2/tenants/{tenantUid}/paymentmethods/{tenantPaymentMethodUid}/agreements HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 194
{
"tenantPaymentMethodAgreementUid": "text",
"name": "text",
"productUid": "text",
"percentage": 1,
"validFrom": "2026-01-01T00:00:00.000Z",
"validTo": "2026-01-01T00:00:00.000Z",
"position": 1,
"active": true
}{
"tenantPaymentMethodAgreementUid": "text",
"name": "text",
"productUid": "text",
"percentage": 1,
"validFrom": "2026-01-01T00:00:00.000Z",
"validTo": "2026-01-01T00:00:00.000Z",
"position": 1,
"active": true,
"createdAt": "2026-01-01T00:00:00.000Z",
"createdBy": "text",
"lastModifiedAt": "2026-01-01T00:00:00.000Z",
"lastModifiedBy": "text"
}Last updated
Was this helpful?

