POST api/Sync/ReceiveAccountBatch
Receive a batch of accounts associated with a partner.
Request Information
URI Parameters
None.
Body Parameters
AccountPartnerBatchModelName | Description | Type | Additional information |
---|---|---|---|
SyncPointId |
Represent the identifier to verify crediantials of batch sent. |
globally unique identifier |
Required |
CountryCode |
Represent the country code of account. (ex: Chile=CL, Brasil=BR, Mexico=MX, etc...) |
string |
Required |
CreationDate |
Creation datetime of the batch. |
date |
Required |
AccountsPartner |
Collection of Account Partner. |
Collection of AccountPartner |
None. |
Request Formats
application/json, text/json
Sample:
{ "SyncPointId": "44f6f87c-93da-42b3-8744-bb298626090e", "CountryCode": "sample string 2", "CreationDate": "2024-11-02T22:06:06.7390946+00:00", "AccountsPartner": [ { "UserEmail": "sample string 1", "UserFullName": "sample string 2", "UserTaxID": "sample string 3", "UserBirthDate": "2024-11-02T22:06:06.7390946+00:00", "AccountCode": "sample string 4", "AccountName": "sample string 5", "AccountState": "sample string 6", "AccountCity": "sample string 7", "AccountAddress": "sample string 8", "AccountContactEmail": "sample string 9", "AccountPhoneNumber": "sample string 10", "PartnerToken": "sample string 11", "TokenUsed": true, "UpdatedTimestamp": "2024-11-02T22:06:06.7390946+00:00" }, { "UserEmail": "sample string 1", "UserFullName": "sample string 2", "UserTaxID": "sample string 3", "UserBirthDate": "2024-11-02T22:06:06.7390946+00:00", "AccountCode": "sample string 4", "AccountName": "sample string 5", "AccountState": "sample string 6", "AccountCity": "sample string 7", "AccountAddress": "sample string 8", "AccountContactEmail": "sample string 9", "AccountPhoneNumber": "sample string 10", "PartnerToken": "sample string 11", "TokenUsed": true, "UpdatedTimestamp": "2024-11-02T22:06:06.7390946+00:00" } ] }
application/xml, text/xml
Sample:
<AccountPartnerBatchModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Gosocket.Web.Api.Models"> <AccountsPartner> <AccountPartner> <AccountAddress>sample string 8</AccountAddress> <AccountCity>sample string 7</AccountCity> <AccountCode>sample string 4</AccountCode> <AccountContactEmail>sample string 9</AccountContactEmail> <AccountName>sample string 5</AccountName> <AccountPhoneNumber>sample string 10</AccountPhoneNumber> <AccountState>sample string 6</AccountState> <PartnerToken>sample string 11</PartnerToken> <TokenUsed>true</TokenUsed> <UpdatedTimestamp>2024-11-02T22:06:06.7390946+00:00</UpdatedTimestamp> <UserBirthDate>2024-11-02T22:06:06.7390946+00:00</UserBirthDate> <UserEmail>sample string 1</UserEmail> <UserFullName>sample string 2</UserFullName> <UserTaxID>sample string 3</UserTaxID> </AccountPartner> <AccountPartner> <AccountAddress>sample string 8</AccountAddress> <AccountCity>sample string 7</AccountCity> <AccountCode>sample string 4</AccountCode> <AccountContactEmail>sample string 9</AccountContactEmail> <AccountName>sample string 5</AccountName> <AccountPhoneNumber>sample string 10</AccountPhoneNumber> <AccountState>sample string 6</AccountState> <PartnerToken>sample string 11</PartnerToken> <TokenUsed>true</TokenUsed> <UpdatedTimestamp>2024-11-02T22:06:06.7390946+00:00</UpdatedTimestamp> <UserBirthDate>2024-11-02T22:06:06.7390946+00:00</UserBirthDate> <UserEmail>sample string 1</UserEmail> <UserFullName>sample string 2</UserFullName> <UserTaxID>sample string 3</UserTaxID> </AccountPartner> </AccountsPartner> <CountryCode>sample string 2</CountryCode> <CreationDate>2024-11-02T22:06:06.7390946+00:00</CreationDate> <SyncPointId>44f6f87c-93da-42b3-8744-bb298626090e</SyncPointId> </AccountPartnerBatchModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
AccountPartnerBatchResponseName | Description | Type | Additional information |
---|---|---|---|
BatchId |
Represent the identifier of the batch. |
globally unique identifier |
None. |
ReceptionDate |
Reception Datetime value of the batch. |
date |
None. |
Status |
Represent the status response. 1 = Ok, 2 = Error. |
integer |
None. |
StatusMessage |
Represent the description of the status response. |
string |
None. |
BatchCount |
Represent the number of accounts in the batch. |
integer |
None. |
AccountsPartnerResponse |
Collection of Account Partner. |
Collection of AccountPartnerResponse |
None. |
Response Formats
application/json, text/json
Sample:
{ "BatchId": "d8a995a3-caf2-473f-b718-4cb2bd0f0ff9", "ReceptionDate": "2024-11-02T22:06:06.8797208+00:00", "Status": 3, "StatusMessage": "sample string 4", "BatchCount": 5, "AccountsPartnerResponse": [ { "AccountCode": "sample string 1", "AccountName": "sample string 2", "PartnerToken": "sample string 3", "Status": 4, "StatusMessage": "sample string 5" }, { "AccountCode": "sample string 1", "AccountName": "sample string 2", "PartnerToken": "sample string 3", "Status": 4, "StatusMessage": "sample string 5" } ] }
application/xml, text/xml
Sample:
<AccountPartnerBatchResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Gosocket.Web.Api.Models"> <AccountsPartnerResponse> <AccountPartnerResponse> <AccountCode>sample string 1</AccountCode> <AccountName>sample string 2</AccountName> <PartnerToken>sample string 3</PartnerToken> <Status>4</Status> <StatusMessage>sample string 5</StatusMessage> </AccountPartnerResponse> <AccountPartnerResponse> <AccountCode>sample string 1</AccountCode> <AccountName>sample string 2</AccountName> <PartnerToken>sample string 3</PartnerToken> <Status>4</Status> <StatusMessage>sample string 5</StatusMessage> </AccountPartnerResponse> </AccountsPartnerResponse> <BatchCount>5</BatchCount> <BatchId>d8a995a3-caf2-473f-b718-4cb2bd0f0ff9</BatchId> <ReceptionDate>2024-11-02T22:06:06.8797208+00:00</ReceptionDate> <Status>3</Status> <StatusMessage>sample string 4</StatusMessage> </AccountPartnerBatchResponse>