Mandates
GET/v1/mandates/{id}/diff

Compare mandate versions

View as .md
curl -X GET "https://api.52-28-238-205.sslip.io/v1/mandates/{id}/diff" \  -H "Cookie: <console session cookie>"

Returns the field changes between two versions. Console session or API key with payment:read.

Server URLhttps://api.52-28-238-205.sslip.io
GET/v1/mandates/{id}/diffBase URL: https://api.52-28-238-205.sslip.io
Authorization
  • sessionCookie: <console session cookie>
  • apiKeyAuthorization: Bearer sk_test_...
Path
  • idstringrequired

    Mandate id (mdt_...).

Query
  • fromstring

    Version to compare from (default: the active version, else the previous one).

  • tostring

    Version to compare to (default: the latest version).

Requires permissionpayment:read
Held by owner, admin, finance, approver (own team), developer, merchant_owner, merchant_developer, operator. The caller must hold this permission, or the call is refused with 403.

Authorization

cookieuapg_session<token>

Console session cookie (HttpOnly, SameSite=Lax)

Path Parameters

id*Id

Mandate id (mdt_...).

Query Parameters

from?|

Version to compare from (default: the active version, else the previous one).

to?|

Version to compare to (default: the latest version).

Response Body

Success.

application/json
  1. response
from*From
to*To
changes*array<>
[key: string]?any