Create an Account
This API endpoint is used to create an account for the user. The request should include the user's internal ID in your system. Upon successful creation, the Processing Service will return the F2C account ID.
Endpoint
POST https://<api hostname>/f2c/v1/customer/init
Request Headers
Authorization: Bearer <access_token>
Request Body
{
"customer_external_id": "<internal_user_account_wallet_id>"
}
Request Body Fields
Field | Type | Description |
---|---|---|
customer_id | String | F2C account ID |
Example Request
POST https://api.example.com/f2c/v1/customer/init
Authorization: Bearer l.QtEo8ahkNFX4RTpbqp0u4z4GDZq27HzUp6AotJASBx7_DVqmqZMHfM2Cy7JmUjS80boI9eVg
{
"customer_external_id": "8ce43c7a-2143-467c-b8b5-fa748c598ddd"
}
Example response
{
"customer_id": "23d93cac-000f-5000-8000-126628f15141"
}