Passer au contenu principal
POST
/
v2
/
order
/
{order_uuid}
/
reauthorize
Reauthorize amount by order
curl --request POST \
  --url https://sandbox.gateway.sezzle.com/v2/order/{order_uuid}/reauthorize \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "amount_in_cents": 5000,
  "currency": "USD"
}
'
{
  "uuid": "6c9db5d4-d09a-4224-860a-b5438ac32ca8",
  "links": [
    {
      "href": "https://gateway.sezzle.com/v2/order/6c9db5d4-d09a-4224-860a-b5438ac32ca8",
      "method": "GET",
      "rel": "self"
    }
  ],
  "intent": "AUTH",
  "reference_id": "original_order_reference_id",
  "order_amount": {
    "amount_in_cents": 5000,
    "currency": "USD"
  },
  "authorization": {
    "authorization_amount": {
      "amount_in_cents": 5000,
      "currency": "USD"
    },
    "approved": true,
    "expiration": "2022-04-23T16:13:44Z"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.sezzle.com/llms.txt

Use this file to discover all available pages before exploring further.

Veuillez noter ce qui suit lors de la réautorisation d’une commande.
  • Une nouvelle commande sera créée
    • L’intention sera définie sur AUTH
    • Le reference_id sera le même que celui de la commande originale
  • Le montant réautorisé sera un nouveau plan de versements pour le client
Les réautorisations ne sont pas garanties d’être approuvées. Il est extrêmement important de noter que cette API retournera un succès 200 si la demande de réautorisation est réussie (c’est-à-dire sans erreurs) mais que le client n’a pas été approuvé.Veuillez vous assurer de vérifier la valeur approved dans la réponse pour déterminer si la commande de réautorisation a été créée.

Autorisations

Authorization
string
header
requis

The authentication token generated from providing API Keys to Sezzle Gateway

En-têtes

Sezzle-Request-Id
string

Unique client-generated ID to enforce idempotency

Paramètres de chemin

order_uuid
string
requis

The Order UUID to reauthorize (order.uuid from session response)

Corps

application/json

The amount to be reauthorized

amount_in_cents
integer
requis

The amount in cents

currency
string
requis

The 3 character currency code as defined by ISO 4217

Réponse

Successful Operation

uuid
string

The unique identifier for this response

Available API links prefilled with UUID with accompanying method

intent
enum<string>

If your checkout flow requires the user to confirm their checkout on your site after being approved by Sezzle, use AUTH as your intent. If you prefer the checkout be captured immediately, use CAPTURE. Submit a capture request via the API or your Merchant Dashboard before the authorization expires. The authorization expiration window can be set from 30 minutes up to 7 days in your Merchant Dashboard Settings.

Options disponibles:
AUTH,
CAPTURE
reference_id
string

The checkout or cart ID from the merchant, currently used for tracking only (must contain only alphanumeric characters, dashes (-), and underscores (_))

order_amount
object

A Price object containing the total amount in cents of the order, which must be at least 100 which is $1.00. Please note your merchant configuration might have a higher minimum.

authorization
object

The authorization details for the order