| 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 .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
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: application/json
Content-Type: application/json
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: application/json
Content-Length: length
{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}