For the complete documentation index, see llms.txt. This page is also available as Markdown.

Update an agreement for a tenant payment method

Update an agreement for a tenant payment method. Only the fields you send are changed. 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.

Required permissions: PAYMENT_METHOD

put
/tenants/{tenantUid}/paymentmethods/{tenantPaymentMethodUid}/agreements/{tenantPaymentMethodAgreementUid}
Authorizations
AuthorizationstringRequired

Access token recevied after user login with a deviceToken

Path parameters
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
tenantPaymentMethodUidstringRequired

Reference to a tenant PaymentMethodUid.

Pattern: ^[A-Za-z0-9-_]+
tenantPaymentMethodAgreementUidstringRequired

Reference to a tenantPaymentMethodAgreementUid.

Pattern: ^[A-Za-z0-9-_]+
Body
namestringOptional

Name of the agreement.

productUidstringOptionalPattern: ^[A-Za-z0-9-_]+
percentageintegerOptional

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.

validFromstring · date-time · nullableOptional

The agreement can be used from this point in time. Send null to remove the start limit.

validTostring · date-time · nullableOptional

The agreement can be used until this point in time. Send null to remove the end limit.

positionintegerOptional

Sort order when the agreements are listed.

activebooleanOptional

Whether the agreement can be used.

Responses
200Success
application/json

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.

tenantPaymentMethodAgreementUidstringRequiredPattern: ^[A-Za-z0-9-_]+
namestringRequired

Name of the agreement.

productUidstringRequiredPattern: ^[A-Za-z0-9-_]+
percentageintegerRequired

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.

validFromstring · date-time · nullableRequired

The agreement can be used from this point in time. Null means it has no start limit.

validTostring · date-time · nullableRequired

The agreement can be used until this point in time. Null means it has no end limit.

positionintegerRequired

Sort order when the agreements are listed.

activebooleanRequired

Whether the agreement can be used. An agreement that has been used should be deactivated rather than deleted.

createdAtstring · date-timeRequired
createdBystringRequired
lastModifiedAtstring · date-timeRequired
lastModifiedBystringRequired
put/tenants/{tenantUid}/paymentmethods/{tenantPaymentMethodUid}/agreements/{tenantPaymentMethodAgreementUid}
PUT /v2/tenants/{tenantUid}/paymentmethods/{tenantPaymentMethodUid}/agreements/{tenantPaymentMethodAgreementUid} HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 153

{
  "name": "text",
  "productUid": "text",
  "percentage": 1,
  "validFrom": "2026-01-01T00:00:00.000Z",
  "validTo": "2026-01-01T00:00:00.000Z",
  "position": 1,
  "active": true
}
200Success
{
  "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?