session/start/payout
session/start/payout
Send this request to start a payout within an existing session. In the parameters, pass the data necessary to perform a payout or change any pieces of data already passed.
- API v1
 - API v2
 
Endpoint
api/v1/session/start/payout
Request parameters
| Name | Mandatory | Type | Description | 
|---|---|---|---|
| session_id | + | string | Payment session identifier | 
| payment_method | - | object | Payout data | 
| amount_details | - | object | Amount. Transmitted in the USD decimal format. If you are sending 100 USD, you will need to specify 10000 | 
| participant_details | - | object | Information on the sender and recipient | 
| customer | - | object | Recipient's data in your system | 
| metadata | - | * | Additional information. Any data you need in order to perform the operation. Returned in responses and webhooks | 
If you did not specify
payment_methodandamount_detailsin yoursession/createrequest, make sure you specify them in this request, since in this case they are mandatory.
Request example
curl -X POST \
  https://demo.smart-glocal.com/api/v1/session/start/payout \
  -H 'content-type: application/json' \
  -H 'X-PARTNER-PROJECT: your_project_name' \
  -H 'X-PARTNER-SIGN: signature' \
  -d '{
    "session_id": "ps_3230",
    "payment_method": {
      "type": "bank_account",
      "bank_account": {
        "system_type": "global",
        "global": {
          "iban": "NUMBER_VALUE",
          "description": "purpose of remittance"
        }
      }
    },
    "amount_details": {
      "amount": 1000,
      "currency": "usd"
    },
    "participant_details": {
      "recipient": {
        "bank_name": "All Banks Belgium / EUR / Payment System: SEPA",
        "currency": "eur",
        "country_iso3": "BEL",
        "first_name": "John",
        "last_name": "Johnson"
        },
      "sender": {
        "company_name": "Company name",
        "registration_number": "1234567890",
        "country_iso3": "USA",
        "code": "1234567890"
      }
    }
  }'
Response parameters
| Name | Mandatory | Type | Description | 
|---|---|---|---|
| status | + | string | Status. Options: error, ok | 
| session | - | object | Payment session | 
| error | - | object | Error description | 
Successful response example
{
  "status": "ok",
  "session": {
    "id": "ps_3230",
    "status": "in_progress",
    "created_at": "2024-05-27T02:03:00.000000Z",
    "updated_at": "2024-05-27T02:03:00.000000Z",
    "payments": [{
        "id": "po_1313",
        "status": "in_progress",
        "created_at": "2024-05-27T02:03:00.000000Z",
        "customer": {
          "reference": "user123",
          "contacts": [{
            "email": "user@gmail.com"
          }]
        },
        "payment_method": {
          "type": "bank_account",
          "bank_account": {
            "system_type": "global",
            "global": {
              "iban": "NUMBER_VALUE",
              "description": "purpose of remittance"
          }
        },
        "amount_details": {
          "amount": 10000,
          "currency": "usd"
        },
        "participant_details": {
          "recipient": {
            "bank_name": "All Banks Belgium / EUR / Payment System: SEPA",
            "currency": "eur",
            "country_iso3": "BEL",
            "first_name": "John",
            "last_name": "Johnson"
          },
          "sender": {
            "company_name": "Company name",
            "registration_number": "1234567890",
            "country_iso3": "USA",
            "code": "1234567890"
          }
        },
        "metadata": "good"
        }
    }]
  }
}
Unsuccessful response example
{
  "error": {
    "code": "error code",
    "description": "error description"
  },
  "status": "error"
}
Endpoint
api/v2/session/start/payout
Request parameters
| Name | Mandatory | Type | Description | 
|---|---|---|---|
| session_id | + | string | Payment session identifier | 
| payout_details | - | object | Payout data | 
| amount_details | - | object | Amount. Transmitted in the USD decimal format. If you are sending 100 USD, you will need to specify 10000 | 
| participant_details | - | object | Information on the sender and recipient | 
| customer | - | object | Recipient's data in your system | 
| metadata | - | * | Additional information. Any data you need in order to perform the operation. Returned in responses and webhooks | 
If you did not specify
payout_detailsandamount_detailsin yoursession/createrequest, make sure you specify them in this request, since in this case they are mandatory.
Request example
curl -X POST \
  https://demo.smart-glocal.com/api/v2/session/start/payout \
  -H 'content-type: application/json' \
  -H 'X-PARTNER-PROJECT: your_project_name' \
  -H 'X-PARTNER-SIGN: signature' \
  -d '{
    "session_id": "ps_3230",
    "payout_details": {
      "type": "bank_account",
      "bank_account": {
        "system_type": "global",
        "global": {
          "iban": "NUMBER_VALUE",
          "description": "purpose of remittance"
        }
      }
    },
    "amount_details": {
      "amount": 1000,
      "currency": "usd"
    },
    "participant_details": {
      "recipient": {
        "bank_name": "All Banks Belgium / EUR / Payment System: SEPA",
        "currency": "eur",
        "country_iso3": "BEL",
        "first_name": "John",
        "last_name": "Johnson"
        },
      "sender": {
        "company_name": "Company name",
        "registration_number": "1234567890",
        "country_iso3": "USA",
        "code": "1234567890"
      }
    }
  }'
Response parameters
| Name | Mandatory | Type | Description | 
|---|---|---|---|
| status | + | string | Status. Options: error, ok | 
| session | - | object | Payment session | 
| error | - | object | Error description | 
Successful response example
{
  "status": "ok",
  "session": {
    "id": "ps_3230",
    "status": "in_progress",
    "created_at": "2024-05-27T02:03:00.000000Z",
    "updated_at": "2024-05-27T02:03:00.000000Z",
    "payout_list": [{
      "id": "po_1313",
      "status": "in_progress",
      "created_at": "2024-05-27T02:03:00.000000Z",
      "customer": {
        "reference": "user123",
        "contacts": [{
          "email": "user@gmail.com"
        }]
      },
      "payout_details": {
        "type": "bank_account",
        "bank_account": {
          "system_type": "global",
          "global": {
            "iban": "NUMBER_VALUE",
            "description": "purpose of remittance"
        }
      },
      "amount_details": {
        "amount": 10000,
        "currency": "usd"
      },
      "participant_details": {
        "recipient": {
          "bank_name": "All Banks Belgium / EUR / Payment System: SEPA",
          "currency": "eur",
          "country_iso3": "BEL",
          "first_name": "John",
          "last_name": "Johnson"
        },
        "sender": {
          "company_name": "Company name",
          "registration_number": "1234567890",
          "country_iso3": "USA",
          "code": "1234567890"
        }
      },
      "metadata": "good"
      }
    }]
  }
}
Unsuccessful response example
{
  "error": {
    "code": "error code",
    "description": "error description"
  },
  "status": "error"
}