Skip to content

4-Send Payment

This ':id' refers to 'latam_id' generated in step 1

PUT /api/v1/3ds/order/:id
Host: sulpayments.ch
Content-Type: "application/json"
ACCOUNT_TOKEN: "<token>"

{
  "address": {
    "street": "Av Marechal Camara", # (required)
    "number": "160", # (required)
    "neighborhood": "Centro", # (required)
    "complement": "Sala 934", # (required)
    "zip": "20020080", # (required)
    "city": "Rio de Janeiro", # (required)
    "state": "RJ", # (required)
  },
  "credit_card": {
    "holder_name": "CUSTOMER F NAME", # (required)
    "card_number": "4111111111111111", # (required)
    "cvv": "123", # (required)
    "due_date": "04/27", # (required)
    "brand": "visa" # (required),
    "installments": 3 # (optional)
  },
  "credentials": {
    "payment_method_nonce": "d9745a74-7054-104d-72c7-e4eaf1f274ec" # (required)
  }
}

The response will contain the following parameters:

{
  "latam_id": "7c0b8129-f556-4357-bb6e-8189c2943024",
  "status": "waiting_payment"
}

Business errors are returned with a 400 status code. The response will contain the following parameters:

{
  "message": "message of validations errors"
}