Skip to content

Latest commit

 

History

History
464 lines (298 loc) · 18.7 KB

ResellerApi.md

File metadata and controls

464 lines (298 loc) · 18.7 KB

sib_api_v3_sdk.ResellerApi

All URIs are relative to https://api.sendinblue.com/v3

Method HTTP request Description
AddCredits Post /reseller/children/{childIdentifier}/credits/add Add Email and/or SMS credits to a specific child account
AssociateIpToChild Post /reseller/children/{childIdentifier}/ips/associate Associate a dedicated IP to the child
CreateChildDomain Post /reseller/children/{childIdentifier}/domains Create a domain for a child account
CreateResellerChild Post /reseller/children Creates a reseller child
DeleteChildDomain Delete /reseller/children/{childIdentifier}/domains/{domainName} Delete the sender domain of the reseller child based on the childIdentifier and domainName passed
DeleteResellerChild Delete /reseller/children/{childIdentifier} Delete a single reseller child based on the child identifier supplied
DissociateIpFromChild Post /reseller/children/{childIdentifier}/ips/dissociate Dissociate a dedicated IP to the child
GetChildAccountCreationStatus Get /reseller/children/{childIdentifier}/accountCreationStatus Get the status of a reseller's child account creation, whether it is successfully created (exists) or not based on the identifier supplied
GetChildDomains Get /reseller/children/{childIdentifier}/domains Get all sender domains for a specific child account
GetChildInfo Get /reseller/children/{childIdentifier} Get a child account's details
GetResellerChilds Get /reseller/children Get the list of all children accounts
GetSsoToken Get /reseller/children/{childIdentifier}/auth Get session token to access Sendinblue (SSO)
RemoveCredits Post /reseller/children/{childIdentifier}/credits/remove Remove Email and/or SMS credits from a specific child account
UpdateChildAccountStatus Put /reseller/children/{childIdentifier}/accountStatus Update info of reseller's child account status based on the childIdentifier supplied
UpdateChildDomain Put /reseller/children/{childIdentifier}/domains/{domainName} Update the sender domain of reseller's child based on the childIdentifier and domainName passed
UpdateResellerChild Put /reseller/children/{childIdentifier} Update info of reseller's child based on the child identifier supplied

AddCredits

RemainingCreditModel AddCredits(ctx, body, childIdentifier) Add Email and/or SMS credits to a specific child account

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
body AddCredits Values to post to add credit to a specific child account
childIdentifier string Either auth key or id of reseller's child

Return type

RemainingCreditModel

Authorization

api-key, partner-key

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

AssociateIpToChild

AssociateIpToChild(ctx, body, childIdentifier) Associate a dedicated IP to the child

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
body ManageIp IP to associate
childIdentifier string Either auth key or id of reseller's child

Return type

(empty response body)

Authorization

api-key, partner-key

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

CreateChildDomain

CreateChildDomain(ctx, body, childIdentifier) Create a domain for a child account

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
body AddChildDomain Sender domain to add for a specific child account. This will not be displayed to the parent account.
childIdentifier string Either auth key or id of reseller's child

Return type

(empty response body)

Authorization

api-key, partner-key

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

CreateResellerChild

CreateReseller CreateResellerChild(ctx, optional) Creates a reseller child

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
optional *ResellerApiCreateResellerChildOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a ResellerApiCreateResellerChildOpts struct

Name Type Description Notes
body optional.Interface of CreateChild reseller child to add

Return type

CreateReseller

Authorization

api-key, partner-key

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteChildDomain

DeleteChildDomain(ctx, childIdentifier, domainName) Delete the sender domain of the reseller child based on the childIdentifier and domainName passed

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
childIdentifier string Either auth key or id of reseller's child
domainName string Pass the existing domain that needs to be deleted

Return type

(empty response body)

Authorization

api-key, partner-key

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteResellerChild

DeleteResellerChild(ctx, childIdentifier) Delete a single reseller child based on the child identifier supplied

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
childIdentifier string Either auth key or child id of reseller's child

Return type

(empty response body)

Authorization

api-key, partner-key

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DissociateIpFromChild

DissociateIpFromChild(ctx, body, childIdentifier) Dissociate a dedicated IP to the child

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
body ManageIp IP to dissociate
childIdentifier string Either auth key or id of reseller's child

Return type

(empty response body)

Authorization

api-key, partner-key

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetChildAccountCreationStatus

GetChildAccountCreationStatus GetChildAccountCreationStatus(ctx, childIdentifier) Get the status of a reseller's child account creation, whether it is successfully created (exists) or not based on the identifier supplied

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
childIdentifier string Either auth key or id of reseller's child

Return type

GetChildAccountCreationStatus

Authorization

api-key, partner-key

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetChildDomains

[]AllOfgetChildDomainsItems GetChildDomains(ctx, childIdentifier) Get all sender domains for a specific child account

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
childIdentifier string Either auth key or id of reseller's child

Return type

[]AllOfgetChildDomainsItems

Authorization

api-key, partner-key

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetChildInfo

GetChildInfo GetChildInfo(ctx, childIdentifier) Get a child account's details

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
childIdentifier string Either auth key or id of reseller's child

Return type

GetChildInfo

Authorization

api-key, partner-key

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetResellerChilds

GetChildrenList GetResellerChilds(ctx, optional) Get the list of all children accounts

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
optional *ResellerApiGetResellerChildsOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a ResellerApiGetResellerChildsOpts struct

Name Type Description Notes
limit optional.Int64 Number of documents for child accounts information per page [default to 10]
offset optional.Int64 Index of the first document in the page [default to 0]

Return type

GetChildrenList

Authorization

api-key, partner-key

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetSsoToken

GetSsoToken GetSsoToken(ctx, childIdentifier) Get session token to access Sendinblue (SSO)

It returns a session [token] which will remain valid for a short period of time. A child account will be able to access a white-labeled section by using the following url pattern => https:/email.mydomain.com/login/sso?token=[token]

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
childIdentifier string Either auth key or id of reseller's child

Return type

GetSsoToken

Authorization

api-key, partner-key

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

RemoveCredits

RemainingCreditModel RemoveCredits(ctx, body, childIdentifier) Remove Email and/or SMS credits from a specific child account

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
body RemoveCredits Values to post to remove email or SMS credits from a specific child account
childIdentifier string Either auth key or id of reseller's child

Return type

RemainingCreditModel

Authorization

api-key, partner-key

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

UpdateChildAccountStatus

UpdateChildAccountStatus(ctx, body, childIdentifier) Update info of reseller's child account status based on the childIdentifier supplied

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
body UpdateChildAccountStatus values to update in child account status
childIdentifier string Either auth key or id of reseller's child

Return type

(empty response body)

Authorization

api-key, partner-key

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

UpdateChildDomain

UpdateChildDomain(ctx, body, childIdentifier, domainName) Update the sender domain of reseller's child based on the childIdentifier and domainName passed

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
body UpdateChildDomain value to update for sender domain
childIdentifier string Either auth key or id of reseller's child
domainName string Pass the existing domain that needs to be updated

Return type

(empty response body)

Authorization

api-key, partner-key

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

UpdateResellerChild

UpdateResellerChild(ctx, body, childIdentifier) Update info of reseller's child based on the child identifier supplied

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
body UpdateChild values to update in child profile
childIdentifier string Either auth key or id of reseller's child

Return type

(empty response body)

Authorization

api-key, partner-key

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]