Create a new account
POST/accounts
Create a new account
Request
Header Parameters
Sub-account identifier required for all requests
- application/json
Body
required
The SIRET number of the account (only valid SIRET numbers are accepted).
Notification email for the account, will get notified for each successful payment.
Possible values: [ribpay_classic
, ribpay_plus
]
Default value: ribpay_classic
Type of subscription for the terminal that will be created.
Responses
- 201
- 400
- 409
Account successfully created.
- application/json
- Schema
- Example (from schema)
Schema
account
object
required
Unique identifier for the account.
Timestamp for the account creation.
Siret number of the account.
Name of the account. Defined by the SIRET number.
Possible values: [personneMorale
, personnePhysique
]
Type of the account.
Status of the account. For more infos see /validate
Timestamp for the account deletion.
Timestamp for the account creation.
Currency of the account. Only EUR supported for now.
Notification email for the account, will get notified for each successful payment.
URL for account activation. For more infos see /validate
URl for blob storage. For more infos see /validate/pm
Partner id of the account.
ID of the creator of the account
billing_address
object
required
Unique identifier for the billing address.
Full billing address.
Street number.
Street number suffix.
Type of street.
Street name.
Complement address.
Postal code.
City name.
Special delivery.
Country name.
Country code.
Last update date.
Unique identifier for the account.
Unique identifier for the creator.
terminal
object
Unique identifier for the terminal.
Label/name of the terminal.
Type of contract to be shown first.
Type of subscription for the terminal.
Date the terminal was modified.
Unique identifier for the account.
Unique identifier for the subscription.
Unique identifier for the creator.
user
object
Unique identifier for the user created. Is the only user of the account with "admin" role.
Possible values: [admin
, user
]
Role of the user
Identifier of the user who created this user profile
{
"account": {
"account_id": "efc21e45-79d1-48d8-ac19-ea0ecaef2bc5",
"account_last_modified": "2021-09-01T09:00:00Z",
"account_national_id": "12345678901234",
"account_name": "FORTAINE SOFTWARE",
"account_type": "personneMorale",
"account_is_active": true,
"account_deletion_date": "2021-09-01T09:00:00Z",
"account_created_at": "2021-09-01T09:00:00Z",
"account_currency": "EUR",
"account_notification_email": "louka.altdorf-reynes@ribpay.app",
"account_creation_url": "http://localhost:3001/account/TestKey1/efc21e45-79d1-48d8-ac19-ea0ecaef2bc5",
"account_blob_storage_url": "http://localhost:3001/account/TestKey1/efc21e45-79d1-48d8-ac19-ea0ecaef2bc5",
"partner_id": "partner_id",
"creator_id": "TestKey1"
},
"billing_address": {
"billing_address_id": "b9f8e467-90a2-4976-9cd5-1624bdd80ab4",
"billing_address": "177 Avenue WINSTON CHURCHILL 62000 ARRAS",
"billing_address_numero_voie": "177",
"billing_address_indice_repetition": "BIS",
"billing_address_type_voie": "AVENUE",
"billing_address_libelle_voie": "WINSTON CHURCHILL",
"billing_address_complement_localisation": "Bat A",
"billing_address_code_postal": "62000",
"billing_address_libelle_commune": "ARRAS",
"billing_address_distribution_speciale": "Cedex",
"billing_address_pays": "FRANCE",
"billing_address_code_pays": "FR",
"billing_address_last_modified": "2021-09-14T08:00:00.000Z",
"account_id": "b9f8e467-90a2-4976-9cd5-1624bdd80ab4",
"creator_id": "b9f8e467-90a2-4976-9cd5-1624bdd80ab4"
},
"terminal": {
"terminal_id": "f45b68fa-4586-4453-83af-ee2c1c2ecc27",
"terminal_label": "New Terminal",
"terminal_favorite_contract_type": "RIBPAY",
"terminal_subscription_type": "payments",
"terminal_last_modified": "2021-09-30T17:00:00.000Z",
"account_id": "b9f8e467-90a2-4976-9cd5-1624bdd80ab4",
"terminal_subscription_id": "b9f8e467-90a2-4976-9cd5-1624bdd80ab4",
"creator_id": "b9f8e467-90a2-4976-9cd5-1624bdd80ab4"
},
"user": {
"user_id": "dddb97cb-4187-40e1-a46b-702fcbf067fd",
"user_role": "admin",
"creator_id": "Admin"
}
}
Bad Request.
Account already exists.