| POST | /cmd/organizations/register/integrations |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | body | string | No | |
| Nature | body | OrganizationNature | No | |
| Integrations | body | OrganizationIntegrations | No | |
| PayoutPolicy | body | PayoutPolicy | No |
| Name | Value | |
|---|---|---|
| FirstParty | 1 | |
| Partner | 2 |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| FirstParty | form | IntegrationInstance | No | |
| Partner | form | IntegrationInstance | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | string | No | |
| IntegrationId | form | string | No | |
| Wallet | form | IntegrationConnection | No | |
| PartnerApi | form | IntegrationConnection | No | |
| SlipForwardingEnabled | form | bool | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Url | form | string | No | |
| CredentialsRef | form | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| SelfService | form | WalletPayoutMode | No | |
| Personal | form | WalletPayoutMode | No |
| Name | Value | |
|---|---|---|
| RealTime | 0 | |
| BatchPayout | 1 |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /cmd/organizations/register/integrations HTTP/1.1
Host: api.bettor.webhop.biz
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
id: String,
nature: 1,
integrations:
{
firstParty:
{
id: String,
integrationId: String,
wallet:
{
url: String,
credentialsRef: String
},
partnerApi:
{
url: String,
credentialsRef: String
},
slipForwardingEnabled: False
},
partner:
{
id: String,
integrationId: String,
wallet:
{
url: String,
credentialsRef: String
},
partnerApi:
{
url: String,
credentialsRef: String
},
slipForwardingEnabled: False
}
},
payoutPolicy:
{
selfService: 0,
personal: 0
}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
errorCode: String,
message: String,
stackTrace: String,
errors:
[
{
errorCode: String,
fieldName: String,
message: String,
meta:
{
String: String
}
}
],
meta:
{
String: String
}
}