We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/KuudoAI/amazon_ads_mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
AccountsBilling.json•130 KiB
{"components":{"callbacks":{},"examples":{},"headers":{},"links":{},"parameters":{"AdPaymentsAccountIdHeader":{"description":"The header used to pass global account associated with the advertiser account. Use `GET` method on the Global Ads Account resource to list the global ads account associated with the access token passed in the HTTP Authorization header and choose `AdvertisingAccountIdentifier` id from the response to pass it as input.","in":"header","name":"Amazon-Ads-AccountId","required":false,"schema":{"type":"string"}},"AdPaymentsClientHeader":{"description":"The identifier of a client associated with a \"Login with Amazon\" account.","in":"header","name":"Amazon-Advertising-API-ClientId","required":true,"schema":{"type":"string"}},"AdPaymentsManagerAccountIdHeader":{"description":"The header used to pass the ID of a manager account. Use `GET` method on the Manager Accounts resource to list the manager accounts associated with the access token passed in the HTTP Authorization header and choose `managerAccountId` from the response to pass it as input.","in":"header","name":"Amazon-Advertising-API-Manager-Account","required":false,"schema":{"type":"string"}},"AdPaymentsNextTokenQueryParam":{"description":"To retrieve the next page of results, call the same operation and specify this token in the request. If the nextToken field is empty, there are no further results.","in":"query","name":"nextToken","schema":{"type":"string"}},"AdPaymentsProfileHeader":{"description":"The identifier of a profile associated with the advertiser account. Use `GET` method on Profiles resource to list profiles associated with the access token passed in the HTTP Authorization header and choose profile id `profileId` from the response to pass it as input.","in":"header","name":"Amazon-Advertising-API-Scope","required":false,"schema":{"type":"string"}}},"requestBodies":{},"responses":{},"schemas":{"AdPaymentsBulkCreationResult":{"properties":{"id":{"description":"The identifier of the resource that this result is referencing.","minLength":1,"type":"string"},"index":{"description":"The index of the item in the input list.","minimum":0,"type":"integer"},"reason":{"description":"A human readable reason giving more details regarding this result.","minLength":1,"type":"string"}},"required":["id","index"],"type":"object"},"AdPaymentsCountryCode":{"description":"Enum defining country codes.","enum":["AE","AU","BE","BR","CA","CL","CO","DE","EG","ES","FR","IN","IT","JP","MX","NG","NL","PL","SA","SE","SG","TR","UK","US","ZA"],"type":"string"},"AdPaymentsCountryCodeList":{"description":"A list of country codes.","items":{"$ref":"#/components/schemas/AdPaymentsCountryCode"},"minItems":0,"type":"array"},"AdPaymentsCreatePaymentAgreementsInput":{"description":"Represents the input of the create payment agreement API.","properties":{"paymentAgreements":{"$ref":"#/components/schemas/AdPaymentsPaymentAgreementList"}},"required":["paymentAgreements"],"type":"object"},"AdPaymentsCreatePaymentAgreementsOutput":{"description":"Represent the output of the create payment agreement API.","properties":{"error":{"items":{"$ref":"#/components/schemas/AdPaymentsBulkCreationResult"},"type":"array"},"success":{"items":{"$ref":"#/components/schemas/AdPaymentsBulkCreationResult"},"type":"array"}},"required":["error","success"],"type":"object"},"AdPaymentsCreatePaymentProfileInput":{"description":"Represents the input of the create payment profiles API.","properties":{"paymentProfiles":{"$ref":"#/components/schemas/AdPaymentsPaymentProfileList"}},"required":["paymentProfiles"],"type":"object"},"AdPaymentsCreatePaymentProfilesOutput":{"description":"Represent the output of the create payment profiles API.","properties":{"error":{"items":{"$ref":"#/components/schemas/AdPaymentsBulkCreationResult"},"type":"array"},"success":{"items":{"$ref":"#/components/schemas/AdPaymentsBulkCreationResult"},"type":"array"}},"required":["error","success"],"type":"object"},"AdPaymentsCreditCardPaymentMethod":{"description":"Represents Credit Card payment method structure.","properties":{"brand":{"description":"The processor used to execute payments on the card, such as Visa, MasterCard, etc. Only valued for credit card payment methods.","minLength":1,"type":"string"},"eligibleCountries":{"$ref":"#/components/schemas/AdPaymentsCountryCodeList"},"expiryDetails":{"$ref":"#/components/schemas/AdPaymentsExpiryDetails"},"instrumentId":{"description":"Identifies a credit card payment method.","minLength":1,"type":"string"},"tail":{"description":"The last four digits of the credit card number.","type":"string"},"type":{"$ref":"#/components/schemas/AdPaymentsPaymentMethodType"}},"required":["brand","eligibleCountries","expiryDetails","instrumentId","tail","type"],"type":"object"},"AdPaymentsCreditCardPaymentMethodList":{"description":"A list of credit card payment methods.","items":{"$ref":"#/components/schemas/AdPaymentsCreditCardPaymentMethod"},"maxItems":100,"minItems":0,"type":"array"},"AdPaymentsCurrencyAmount":{"properties":{"amount":{"description":"A monetary amount.","minLength":1,"type":"number"},"currencyCode":{"$ref":"#/components/schemas/AdPaymentsCurrencyCode"}},"required":["amount","currencyCode"],"type":"object"},"AdPaymentsCurrencyCode":{"description":"Enum defining different currency codes.","enum":["AED","AUD","BRL","CAD","CLP","COP","EGP","EUR","GBP","INR","JPY","MXN","NGN","PLN","SAR","SEK","SGD","TRY","USD","ZAR"],"type":"string"},"AdPaymentsDeductFromPaymentPaymentMethod":{"description":"Represents DeductFromPayment payment method structure. DeductFromPayment is a type of payment method where spends are deducted from vendor balance of a particular vendor code.","properties":{"countryCode":{"$ref":"#/components/schemas/AdPaymentsCountryCode"},"eligibleCountries":{"$ref":"#/components/schemas/AdPaymentsCountryCodeList"},"type":{"$ref":"#/components/schemas/AdPaymentsPaymentMethodType"},"vendorCode":{"description":"A vendor code identifies a product being sold by a vendor on the retail website. When Amazon purchases products from a vendor, Amazon owes the vendor money which gets added to the vendor''s balance. An advertising account can then use this balance to pay for their advertising spends.","minLength":1,"type":"string"},"vendorCodeBalance":{"$ref":"#/components/schemas/AdPaymentsCurrencyAmount"},"vendorCodeName":{"description":"The name of the vendor code this payment method represents.","minLength":1,"type":"string"},"vendorGroupId":{"description":"The identifier of the vendor group that this vendor code belongs to.","minLength":1,"type":"string"}},"required":["eligibleCountries","type","vendorCode","vendorCodeName"],"type":"object"},"AdPaymentsDeductFromPaymentPaymentMethodList":{"description":"A list of deduct from payment payment methods.","items":{"$ref":"#/components/schemas/AdPaymentsDeductFromPaymentPaymentMethod"},"maxItems":100,"minItems":0,"type":"array"},"AdPaymentsDirectDebitPaymentMethod":{"description":"Represents Direct Debit payment method structure.","properties":{"eligibleCountries":{"$ref":"#/components/schemas/AdPaymentsCountryCodeList"},"instrumentId":{"description":"Identifies a direct debit payment method.","minLength":1,"type":"string"},"tail":{"description":"The last four digits of the bank account number.","type":"string"},"type":{"$ref":"#/components/schemas/AdPaymentsPaymentMethodType"}},"required":["eligibleCountries","instrumentId","tail","type"],"type":"object"},"AdPaymentsDirectDebitPaymentMethodList":{"description":"A list of direct debit payment methods.","items":{"$ref":"#/components/schemas/AdPaymentsDirectDebitPaymentMethod"},"maxItems":100,"minItems":0,"type":"array"},"AdPaymentsEntityMarketplace":{"description":"Represents an advertiser and marketplace combination.","properties":{"countryCode":{"$ref":"#/components/schemas/AdPaymentsCountryCode"},"entityId":{"description":"The identifier of the entity.","minLength":1,"type":"string"},"entityType":{"$ref":"#/components/schemas/AdPaymentsEntityType"}},"required":["entityId","entityType"],"type":"object"},"AdPaymentsEntityMarketplaceList":{"description":"A list of uniquely identifiable advertising entities.","items":{"$ref":"#/components/schemas/AdPaymentsEntityMarketplace"},"maxItems":100,"minItems":0,"type":"array"},"AdPaymentsEntityType":{"description":"Enum defining different advertiser types.","enum":["AGENCY","DSP_ADVERTISING_ACCOUNT","GLOBAL_ACCOUNT","MANAGER_ACCOUNT","SELLER","VENDOR"],"type":"string"},"AdPaymentsError":{"properties":{"code":{"type":"string"},"details":{"type":"string"}},"required":["code","details"],"type":"object"},"AdPaymentsExpiryDetails":{"description":"Indicates the month a payment method will expire.","properties":{"month":{"description":"The month the payment method will expire.","type":"integer"},"year":{"description":"The year the payment method will expire.","type":"integer"}},"required":["month","year"],"type":"object"},"AdPaymentsGetCustomerPaymentMethodsOutput":{"description":"Represents the output of the get payment methods API.","properties":{"creditCardPaymentMethods":{"$ref":"#/components/schemas/AdPaymentsCreditCardPaymentMethodList"},"deductFromPaymentPaymentMethods":{"$ref":"#/components/schemas/AdPaymentsDeductFromPaymentPaymentMethodList"},"directDebitPaymentMethods":{"$ref":"#/components/schemas/AdPaymentsDirectDebitPaymentMethodList"},"nextToken":{"$ref":"#/components/schemas/AdPaymentsNextToken"},"payByInvoicePaymentMethods":{"$ref":"#/components/schemas/AdPaymentsPayByInvoicePaymentMethodList"},"sellerPayablePaymentMethods":{"$ref":"#/components/schemas/AdPaymentsSellerPayablePaymentMethodList"}},"type":"object"},"AdPaymentsGetPaymentAgreementOutput":{"description":"Represent the output of the get payment agreements API.","properties":{"nextToken":{"$ref":"#/components/schemas/AdPaymentsNextToken"},"paymentAgreements":{"$ref":"#/components/schemas/AdPaymentsPaymentAgreementList"}},"required":["paymentAgreements"],"type":"object"},"AdPaymentsIdempotenceId":{"description":"Idempotency Id that will be used as a identifier to ensure idempotency while creating /updating the given resource. Requests with same idempotency Id will be considered identical and processed in an idempotent manner.","minLength":1,"type":"string"},"AdPaymentsLocale":{"description":"Enum defining supported language locales.","enum":["ar_AE","de_DE","en_AU","en_CA","en_GB","en_IN","en_SG","en_US","es_CO","es_ES","es_MX","es_US","fr_CA","fr_FR","hi_IN","it_IT","ja_JP","ko_KR","nl_NL","pl_PL","pt_BR","sv_SE","ta_IN","th_TH","tr_TR","vi_VN","zh_CN","zh_TW"],"type":"string"},"AdPaymentsNextToken":{"description":"To retrieve the next page of results, call the same operation and specify this token in the request. If the nextToken field is empty, there are no further results.","type":"string"},"AdPaymentsPayByInvoicePaymentMethod":{"description":"Represents Pay By Invoice payment method structure. Pay By Invoice is a type of payment method where the customer receives a physical invoice which they can pay via bank transfer.","properties":{"eligibleCountries":{"$ref":"#/components/schemas/AdPaymentsCountryCodeList"},"type":{"$ref":"#/components/schemas/AdPaymentsPaymentMethodType"}},"required":["eligibleCountries","type"],"type":"object"},"AdPaymentsPayByInvoicePaymentMethodList":{"description":"A list of pay by invoice payment methods.","items":{"$ref":"#/components/schemas/AdPaymentsPayByInvoicePaymentMethod"},"maxItems":100,"minItems":0,"type":"array"},"AdPaymentsPayInvoicesInput":{"description":"Represents the input to the pay invoices API.","properties":{"idempotenceId":{"$ref":"#/components/schemas/AdPaymentsIdempotenceId"},"paymentAgreementId":{"$ref":"#/components/schemas/AdPaymentsPaymentAgreementId"},"reasonLocale":{"$ref":"#/components/schemas/AdPaymentsLocale"}},"required":["idempotenceId"],"type":"object"},"AdPaymentsPayInvoicesOutput":{"description":"Represents the output of the pay invoices API.","properties":{"failure":{"$ref":"#/components/schemas/AdPaymentsPaymentResultList"},"success":{"$ref":"#/components/schemas/AdPaymentsPaymentResultList"}},"required":["failure","success"],"type":"object"},"AdPaymentsPaymentAgreement":{"description":"Represents an agreement between two parties indicating what profile to use during payment execution.","properties":{"paymentAgreementId":{"description":"The ID associated to this payment agreement.","minLength":1,"type":"string"},"paymentProfile":{"$ref":"#/components/schemas/AdPaymentsPaymentProfile"},"target":{"$ref":"#/components/schemas/AdPaymentsTarget"}},"required":["paymentProfile","target"],"type":"object"},"AdPaymentsPaymentAgreementId":{"description":"ID of a payment agreement that must belong to the customer. A one-time payment will be collected using the payment agreement's associated payment profile. If not provided, the latest payment agreement of the advertiser will be used to collect payments.","minLength":1,"type":"string"},"AdPaymentsPaymentAgreementList":{"items":{"$ref":"#/components/schemas/AdPaymentsPaymentAgreement"},"maxItems":100,"minItems":0,"type":"array"},"AdPaymentsPaymentAgreementType":{"description":"Enum defining different Payment Agreement types.","enum":["AUTO_PAY","PAY_NOW"],"type":"string"},"AdPaymentsPaymentMethod":{"description":"Represents a payment method.","properties":{"brand":{"description":"The processor used to execute payments on the card, such as Visa, MasterCard, etc. Only valued for credit card payment methods.","minLength":1,"type":"string"},"countryCode":{"$ref":"#/components/schemas/AdPaymentsCountryCode"},"expiryDetails":{"$ref":"#/components/schemas/AdPaymentsExpiryDetails"},"instrumentId":{"description":"Identifies a credit card or direct debit payment method.","minLength":1,"type":"string"},"priority":{"description":"A numerical priority assigned to each payment method within a given profile, dictating the sequential order in which these payment methods are utilized during payment execution. Lower numerical values indicate higher priority, with the option possessing the lowest value being selected first.","type":"integer"},"sellerAccountId":{"description":"The seller account ID associated to this payment method, only valued for seller payable payment methods.","minLength":1,"type":"string"},"tail":{"description":"The last four digits of a credit card or bank account number.","type":"string"},"type":{"$ref":"#/components/schemas/AdPaymentsPaymentMethodType"},"vendorCode":{"description":"The vendor code associated to this payment method, only valued for deduct from payment payment methods.","minLength":1,"type":"string"},"vendorCodeBalance":{"$ref":"#/components/schemas/AdPaymentsCurrencyAmount"},"vendorCodeName":{"description":"The name of the vendor code this payment method represents.","minLength":1,"type":"string"}},"required":["priority","type"],"type":"object"},"AdPaymentsPaymentMethodList":{"items":{"$ref":"#/components/schemas/AdPaymentsPaymentMethod"},"maxItems":100,"minItems":1,"type":"array"},"AdPaymentsPaymentMethodType":{"description":"Enum defining different PaymentMethod.","enum":["CREDIT_CARD","DEDUCT_FOR_PAYMENT","DIRECT_DEBIT","PAY_BY_INVOICE","SELLER_PAYABLE"],"type":"string"},"AdPaymentsPaymentProfile":{"description":"Represents a list of payment methods and the scope of advertisers able to access them.","properties":{"defaultFor":{"$ref":"#/components/schemas/AdPaymentsEntityMarketplaceList"},"eligibleEntities":{"$ref":"#/components/schemas/AdPaymentsEntityMarketplaceList"},"paymentMethods":{"$ref":"#/components/schemas/AdPaymentsPaymentMethodList"},"paymentProfileId":{"description":"The ID associated to this payment profile.","minLength":1,"type":"string"}},"type":"object"},"AdPaymentsPaymentProfileList":{"items":{"$ref":"#/components/schemas/AdPaymentsPaymentProfile"},"maxItems":100,"minItems":1,"type":"array"},"AdPaymentsPaymentResult":{"description":"Represents the result of a payment execution.","properties":{"invoiceCFID":{"description":"The customer facing ID of the invoice.","minLength":1,"type":"string"},"reason":{"description":"A human-readable reason explaining the payment result.","minLength":1,"type":"string"}},"required":["invoiceCFID"],"type":"object"},"AdPaymentsPaymentResultList":{"items":{"$ref":"#/components/schemas/AdPaymentsPaymentResult"},"maxItems":100,"minItems":0,"type":"array"},"AdPaymentsSellerPayablePaymentMethod":{"description":"Represents Seller Payable payment method structure. Seller Payable is a type of payment method where spends are deducted from the seller balance of a particular seller account.","properties":{"countryCode":{"$ref":"#/components/schemas/AdPaymentsCountryCode"},"eligibleCountries":{"$ref":"#/components/schemas/AdPaymentsCountryCodeList"},"sellerAccountId":{"description":"The seller account ID associated to this payment method","minLength":1,"type":"string"},"type":{"$ref":"#/components/schemas/AdPaymentsPaymentMethodType"}},"required":["eligibleCountries","type"],"type":"object"},"AdPaymentsSellerPayablePaymentMethodList":{"description":"A list of seller payable payment methods.","items":{"$ref":"#/components/schemas/AdPaymentsSellerPayablePaymentMethod"},"maxItems":100,"minItems":0,"type":"array"},"AdPaymentsTarget":{"properties":{"agreementType":{"$ref":"#/components/schemas/AdPaymentsPaymentAgreementType"},"countryCode":{"$ref":"#/components/schemas/AdPaymentsCountryCode"},"entityId":{"description":"The ID associated to the entity in this target.","minLength":1,"type":"string"},"entityType":{"$ref":"#/components/schemas/AdPaymentsEntityType"}},"required":["agreementType","countryCode"],"type":"object"},"ApplyBillingProfileRequest":{"description":"Request with a list of advertisers to which a list of billing profiles needs to be applied.","properties":{"billingProfileUsages":{"description":"List of advertisers to which a list of billing profiles needs to be applied.","items":{"properties":{"advertiser":{"$ref":"#/components/schemas/MarketplaceAdvertiser"},"billingProfileIds":{"description":"List of billing profile identifiers which needs to be associated with an advertiser.","items":{"type":"string"},"maxItems":2,"minItems":1,"type":"array"}},"required":["advertiser","billingProfileIds"],"type":"object"},"maxItems":20,"minItems":0,"type":"array"}},"required":["billingProfileUsages"],"type":"object"},"ApplyBillingProfileResponse":{"description":"Contains a list of one or more responses corresponding to each advertiser and applied billing profile(s).","properties":{"billingProfileUsages":{"description":"Segregated list of success and error responses for each country and applied billing profile(s).","properties":{"error":{"description":"Error responses for each country and applied billing profile.","items":{"properties":{"advertiser":{"$ref":"#/components/schemas/MarketplaceAdvertiser"},"billingProfileIds":{"description":"List of billing profile identifiers corresponding to billing profiles in request payload.","items":{"type":"string"},"maxItems":2,"minItems":1,"type":"array"},"errors":{"description":"Indicates the error occurred for a billing profile apply operation.","items":{"$ref":"#/components/schemas/ErrorResponse"},"maxItems":200,"minItems":0,"type":"array"},"index":{"description":"Index corresponding to index of the apply operation in request","format":"int64","type":"integer"}},"type":"object"},"maxItems":30,"minItems":0,"type":"array"},"success":{"description":"Success responses for each country and applied billing profile(s).","items":{"properties":{"advertiser":{"$ref":"#/components/schemas/MarketplaceAdvertiser"},"billingProfileIds":{"description":"List of billing profile identifiers corresponding to billing profiles in request payload.","items":{"type":"string"},"maxItems":2,"minItems":1,"type":"array"},"index":{"description":"Index corresponding to index of the apply operation in request","format":"int64","type":"integer"}},"type":"object"},"maxItems":30,"minItems":0,"type":"array"}},"type":"object"}},"type":"object"},"AvailableDocumentResponse":{"properties":{"contentType":{"type":"string"},"docType":{"$ref":"#/components/schemas/DocType"},"fileName":{"type":"string"},"storagePath":{"type":"string"}},"type":"object"},"BaseBillingProfile":{"description":"Billing profile object which contains details regarding address, tax, etc.","properties":{"address":{"description":"Address details to be used for a billing profile","properties":{"addressLine1":{"maxLength":60,"type":"string"},"addressLine2":{"maxLength":60,"type":"string"},"addressLine3":{"maxLength":60,"type":"string"},"billingName":{"description":"The name of the person or organization who is going to recieve the invoice","maxLength":50,"type":"string"},"city":{"maxLength":50,"type":"string"},"contactName":{"description":"Contact name for the billing profile which will also be printed on the invoice.","maxLength":50,"type":"string"},"countryCode":{"type":"string"},"faxNumber":{"maxLength":100,"type":"string"},"phoneNumber":{"maxLength":100,"type":"string"},"postalCode":{"maxLength":20,"type":"string"},"primaryEmail":{"type":"string"},"secondaryEmails":{"items":{"maxLength":64,"type":"string"},"maxItems":100,"minItems":0,"type":"array"},"stateOrRegion":{"maxLength":50,"type":"string"}},"required":["addressLine1","billingName","city","contactName","countryCode","primaryEmail"],"type":"object"},"agreements":{"description":"List of tax-type and corresponding details.","items":{"properties":{"consent":{"default":"false","description":"Consent on the provided agreement document.","type":"boolean"},"documentName":{"description":"Agreement document name against which consent needs to be provided. The content of the agreement can be checked by providing agreement name in `POST /billingProfileAgreementContents/{billingProfileAgreementContentId}` API. Check following table for supported values: <br/><br/><table border=1><caption> **Supported Agreement Document Names** </caption><tr> <th>Agreement document name</th><th>Description</th></tr><tr> <td>BILLING_PROFILE_TAX_AGREEMENT</td> <td>Global tax agreement. Advertiser needs to consent to this if they provide taxes in the billing profile</td></tr><tr> <td>BILLING_PROFILE_CANADIAN_NON_RESIDENCY_AGREEMENT</td> <td>If advetiser is non-resident of canada and wants to advertise in canada without providing canada GST, they need to consent to this agreement</td></tr> <tr><td>BILLING_PROFILE_DSA_AGREEMENT</td><td>Relevant for Authors, If you choose to display your BILLING_NAME or any name other than “Author” then you must provide consent for BILLING_PROFILE_DSA_AGREEMENT.</td></tr> </table>","type":"string"},"locale":{"$ref":"#/components/schemas/Locale"}},"required":["consent","documentName"],"type":"object"},"type":"array"},"billingProfileName":{"description":"Name of a billing profile. This name will only be used to identify the billing profile and will not be used for billing. This is for the client to organize the billing profiles and doesn't affect the billing process.","type":"string"},"displayInfo":{"description":"Object determines publicly displayed information about the advertiser","properties":{"displayName":{"description":"Relevant for only authors. Required if author chooses displayNameField as DISPLAY_NAME.The value inside this field will be shown publicly.","maxLength":100,"type":"string"},"displayNameField":{"description":"Determines the name field that will be displayed publicly.For non-authors, the default and only allowed value for this is BILLING_NAME. For author accounts, If BILLING_NAME is chosen then the value inside address.billingName will bedisplayed publicly. If DISPLAY_NAME is chosen then the value inside displayInfo.displayName will beshown publicly. You may choose to display “Author” as your displayName or you may provide an alternatename to display for your ads.","enum":["BILLING_NAME","DISPLAY_NAME"],"type":"string"}},"type":"object"},"holdingCompany":{"description":"Type of holding company for agency billing profile. Agency Holding Companies are conglomerate entities that own multiple smaller advertising agencies. There are six holding companies, WPP, Omnicom, Publicis, Interpublic, Dentsu, and Havas. A holding company is provided if the billing party is an agency. If your agency is not associated with any of the above, choose NO_HOLDING_COMPANY Check following table for supported values: <br/><br/><table border=1><caption> **Supported Holding Company** </caption><tr> <th>Holding Company</th> </tr><tr> <td>NO_HOLDING_COMPANY</td> </tr><tr> <td>WPP</td> </tr><tr> <td>OMNICOM</td> </tr><tr> <td>PUBLICIS_GROUPE</td> </tr><tr> <td>INTERPUBLIC</td> </tr><tr> <td>DENTSU</td> </tr><tr> <td>HAVAS</td> </tr></table>","type":"string"},"isDefault":{"default":"false","description":"Attribute to indicate if a billing profile is default or not under that global account. Once marked as default, for new countries this billing profile will get automatically applied, if all information provided are sufficient","type":"boolean"},"purchaseOrderNumber":{"description":"Number to track spend against the budgeted amounts.","maxLength":64,"type":"string"},"taxes":{"description":"List of tax-type and values.","items":{"properties":{"countryCode":{"description":"Code of the country to which the tax value belongs to which would override the countryCode provided in the address.","type":"string"},"type":{"description":"Type of tax. Check following table for supported tax types: <br/><br/><table border=1><caption> **Supported Tax Types** </caption><tr> <th>Tax Type</th> </tr><tr> <td>VAT</td> </tr><tr> <td>GST</td> </tr><tr> <td>RFC</td> </tr><tr> <td>SDI</td> </tr><tr> <td>PEC</td> </tr><tr> <td>CNPJ</td> </tr><tr> <td>TAX_OFFICE</td> </tr><tr> <td>TAX_REGIME</td> </tr><tr> <td>PAN</td> </tr></table> <br/><br/> Check following table for supported values for TAX_REGIME: <br/><br/><table border=1><caption> **Supported Tax (for TAX_REGIME) Values** </caption><tr> <th>Value</th> <th>Description</th> </tr><tr> <td>601</td><td>General de Ley Personas Morales</td> </tr><tr> <td>603</td><td>Personas Morales con Fines no Lucrativos</td> </tr><tr> <td>605</td><td>Sueldos y Salarios e Ingresos Asimilados a Salarios</td> </tr><tr> <td>606</td><td>Arrendamiento</td> </tr><tr> <td>607</td><td>Régimen de Enajenación o Adquisición de Bienes</td> </tr><tr> <td>608</td><td>Demás ingresos</td> </tr><tr> <td>610</td><td>Residentes en el Extranjero sin Establecimiento Permanente en México</td> </tr><tr> <td>611</td><td>Ingresos por Dividendos (socios y accionistas)</td> </tr><tr> <td>612</td><td>Personas Físicas con Actividades Empresariales y Profesionales</td> </tr><tr> <td>614</td><td>Ingresos por intereses</td> </tr><tr> <td>615</td><td>Régimen de los ingresos Ingresos por obtención de premios</td> </tr><tr> <td>616</td><td>Sin obligaciones fiscales</td> </tr><tr> <td>620</td><td>Sociedades Cooperativas de Producción que optan por diferir sus ingresos</td> </tr><tr> <td>621</td><td>Incorporación Fiscal</td> </tr><tr> <td>622</td><td>Actividades Agrícolas, Ganaderas, Silvícolas y Pesqueras</td> </tr><tr> <td>623</td><td>Opcional para Grupos de Sociedades</td> </tr><tr> <td>624</td><td>Coordinados</td> </tr><tr> <td>625</td><td>Régimen de las Actividades Empresariales con ingresos a través de Plataformas Tecnológicas</td> </tr><tr> <td>626</td><td>Régimen Simplificado de Confianza</td> </tr></table>","type":"string"},"value":{"description":"Value of the tax type. For example, VAT number for VAT tax type, etc.","type":"string"}},"required":["type","value"],"type":"object"},"maxItems":10,"minItems":0,"type":"array"}},"required":["address","billingParty","billingProfileName","isBillTo","purchaseOrderNumber"],"type":"object"},"BillingInvoiceSummariesRequest":{"description":"Payload with filter, sort and aggregate key(s) to fetch list of billing invoice summary(s).","properties":{"aggregation":{"description":"Object encapsulating the aggregation query information","properties":{"attribute":{"description":"Aggregation attribute for the billing invoice summary(s)","type":"string"},"groupBy":{"description":"Aggregation bucket for the billing invoice summary(s)","type":"string"},"operation":{"description":"Aggregate operation for the billing invoice summary(s)","type":"string"}},"type":"object"},"countryValueFilter":{"description":"Object encapsulating the country filtering information","properties":{"include":{"description":"List of country value(s) to filter from the list of billing invoice summary(s).","items":{"type":"string"},"maxItems":30,"minItems":0,"type":"array"},"queryTermMatchType":{"description":"Defines how would the string resource field be matched with the query term in filter.","type":"string"}},"type":"object"},"invoiceDueDateRangeFilter":{"description":"Object encapsulating due date range information","properties":{"endDate":{"description":"The ending due date (inclusive) of the date range for filtering invoices. Please provide the date in ISO-8601 format, representing a UTC date with only the date portion (no time).","format":"date","type":"string"},"startDate":{"description":"The starting due date (inclusive) of the date range for filtering invoices. Please provide the date in ISO-8601 format, representing a UTC date with only the date portion (no time).","format":"date","type":"string"}},"type":"object"},"invoiceIssuedDateRangeFilter":{"description":"Object encapsulating issued date range information","properties":{"endDate":{"description":"The ending issued date (inclusive) of the date range for filtering invoices. Please provide the date in ISO-8601 format, representing a UTC date with only the date portion (no time).","format":"date","type":"string"},"startDate":{"description":"The starting issued date (inclusive) of the date range for filtering invoices. Please provide the date in ISO-8601 format, representing a UTC date with only the date portion (no time).","format":"date","type":"string"}},"type":"object"},"invoiceNumberFilter":{"description":"Object encapsulating the invoice number search information","properties":{"include":{"description":"List of invoice number(s) to filter from the list of billing invoice summary(s).","items":{"type":"string"},"maxItems":30,"minItems":0,"type":"array"}},"type":"object"},"maxResults":{"default":"100","description":"Max results / billing invoice summary(s) to be shown in a single page.","format":"int64","type":"integer"},"nextToken":{"description":"Offset to fetch next page with list of billing invoice summary(s).","type":"string"},"paymentMethodTypeValueFilter":{"description":"Object encapsulating the payment method type filtering information against which invoice is issued","properties":{"include":{"description":"List of payment method type value(s) to filter from the list of billing invoice summary(s).","items":{"type":"string"},"maxItems":10,"minItems":0,"type":"array"},"queryTermMatchType":{"description":"Defines how would the string resource field be matched with the query term in filter.","type":"string"}},"type":"object"},"reserveOrderNumberFilter":{"description":"Object encapsulating the reserve order number search information","properties":{"include":{"description":"List of reserve order number(s) to filter from the list of billing invoice summary(s).","items":{"type":"string"},"maxItems":30,"minItems":0,"type":"array"}},"type":"object"},"sort":{"description":"Object encapsulating the sort operation information","properties":{"attribute":{"description":"Sort key or attribute for the list of billing invoice summary(s)","type":"string"},"direction":{"description":"Sort order(ascending or descending) for list of billing invoice summary(s)","type":"string"}},"type":"object"},"statusValueFilter":{"description":"Object encapsulating the invoice status filtering information","properties":{"include":{"description":"List of invoice status value(s) to filter from the list of billing invoice summary(s).","items":{"type":"string"},"maxItems":10,"minItems":0,"type":"array"},"queryTermMatchType":{"description":"Defines how would the string resource field be matched with the query term in filter.","type":"string"}},"type":"object"}},"type":"object"},"BillingInvoiceSummariesResponse":{"description":"Contains an object encapsulating either the aggregation result(s) or sorted & filtered billing invoice summary(s).","properties":{"aggregation":{"description":"Object encapsulating the aggregation query and result(s) information","properties":{"invoiceSummaries":{"description":"List of object(s) encapsulating information of billing invoice summary(s).","items":{"$ref":"#/components/schemas/BillingInvoiceSummary","type":"object"},"type":"array"},"results":{"description":"Object encapsulating the aggregation result as per aggregation attribute, operation and bucket (or groupById) on the list of billing invoice summary(s).","items":{"description":"Object encapsulating the aggregation result as per aggregation attribute, operation and bucket (or groupById) on the list of billing invoice summary(s).","properties":{"currencyCode":{"description":"Currency of the aggregate value over the aggregation bucket for a certain key on the aggregation attribute for the specified aggregation operation.","type":"string"},"groupId":{"description":"Aggregation bucket key (or groupById) to which the specific aggregation result belongs.","type":"string"},"value":{"description":"Aggregate value over the aggregation bucket for a certain key on the aggregation attribute for the specified aggregation operation.","format":"double","type":"number"}},"type":"object"},"type":"array"}},"type":"object"},"nextToken":{"description":"Offset to fetch next page with list of billing invoice summary(s).","type":"string"}},"type":"object"},"BillingInvoiceSummary":{"description":"Object encapsulating billing invoice summary information","properties":{"amountDue":{"$ref":"#/components/schemas/CurrencyAmount","description":"Object identifies the amount due along with currency code for the invoice","type":"object"},"country":{"description":"Object encapsulating billing invoice country information","properties":{"code":{"description":"Country code for the invoice","type":"string"},"value":{"description":"Country name for the invoice","type":"string"}},"type":"object"},"dueDate":{"description":"Invoice due date in ISO-8601 format, representing a UTC date with only the date portion (no time)","format":"date","type":"string"},"ePaymentStatus":{"description":"Object encapsulating e-payment status for the invoice","properties":{"code":{"description":"e-payment status code for the invoice","type":"string"},"value":{"description":"e-payment status for the invoice","type":"string"}},"type":"string"},"id":{"description":"Billing Document Number","type":"string"},"issuedDate":{"description":"Invoice issued date in ISO-8601 format, representing a UTC date with only the date portion (no time)","format":"date","type":"string"},"paymentMethodType":{"description":"Object encapsulating payment method type against which invoice is issued","properties":{"code":{"description":"Payment method type for the invoice code","type":"string"},"value":{"description":"Payment method type for the invoice","type":"string"}},"type":"string"},"refundDetails":{"description":"Object encapsulating the invoice refund information","properties":{"amount":{"$ref":"#/components/schemas/CurrencyAmount","description":"Object identifies the refunded amount along with currency code for the invoice","type":"object"},"reason":{"description":"Refund reason of the invoice","type":"string"},"status":{"description":"Refund status of the invoice","type":"string"}},"type":"object"},"remainingAmountDue":{"$ref":"#/components/schemas/CurrencyAmount","description":"Object identifies the remaining amount due along with currency code for the invoice","type":"object"},"reserveOrderNumber":{"description":"Reserve Order Number","type":"string"},"status":{"description":"Object encapsulating billing invoice summary status information","properties":{"code":{"description":"Invoice summary status code","type":"string"},"description":{"description":"Invoice summary status description","type":"string"},"value":{"description":"Invoice summary status","type":"string"}},"type":"string"},"statusDecorator":{"description":"Object encapsulating billing invoice summary status decorator information","properties":{"code":{"description":"Invoice summary status decorator code","type":"string"},"value":{"description":"Invoice summary status decorator","type":"string"}},"type":"string"}},"type":"string"},"BillingProfile":{"allOf":[{"$ref":"#/components/schemas/BaseBillingProfile"},{"properties":{"billingParty":{"description":"Choose `AGENCY` if you are an agency representing an advertiser. Choose `BRAND_OWNER` if you are advertising for your product's sales.","type":"string"},"billingProfileId":{"description":"Billing profile identifier which will be used to identify a billing profile. This identifier will NOT affect billing process.","type":"string"},"isBillTo":{"description":"Whether the billingProfile created should be used for invoicing, taxation and other billing workflows. If the `billTo=false` is setthe `billingName` of that profile is used to determine the 'Advertiser Name' shown to consumers.To ensure accuracy of the information shown on the store, we request that you review the ‘Advertiser Name’ and ‘Payer Name’ in our ad systems and update them if required","type":"boolean"}},"required":["billingParty","billingProfileId","isBillTo"],"type":"object"}],"description":"Billing profile object which contains details regarding address, tax, etc.","type":"object"},"BillingProfileAgreementContentResponse":{"properties":{"content":{"description":"An HTML document to be rendered and read. A consent needs to be provided against this content.","type":"string"}},"type":"object"},"BillingProfileErrorResponse":{"description":"Contains the machine-readable error code and human-readable details.","properties":{"code":{"description":"The code describing the error reason.","type":"string"},"details":{"description":"A human-readable description of the response.","type":"string"}},"type":"object"},"BillingProfileStatus":{"description":"Current Status of the link between the billing Profile and the country. The following table defines the statuses and their descriptions. <table><thead> <tr> <th>Status</th> <th>Description</th> </tr></thead><tbody> <tr> <td>OK</td> <td>There is no problem with the billing profile usage</td> </tr> <tr> <td>BILLING_PROFILE_INVALID_ADDRESS</td> <td>Billing profile usage has invalid address</td> </tr> <tr> <td>BILLING_PROFILE_INVALID_TAX</td> <td>Billing profile usage has invalid taxes</td> </tr> <tr> <td>BILLING_PROFILE_INVALID_PERMISSION</td> <td>User does not have the permission to view the billing profile</td> </tr> <tr> <td>BILLING_PROFILE_NOT_FOUND</td> <td>No billing profile was linked to this country</td> </tr> <tr> <td>BILLING_PROFILE_ERROR</td> <td>There is some other problem with the billing profile usage</td> </tr></tbody></table>","properties":{"statusCode":{"type":"string"},"statusMessage":{"type":"string"}},"type":"object"},"BillingProfileUsage":{"description":"This object contains billing profile(s) that is applied to a given country under a global account","properties":{"advertiser":{"$ref":"#/components/schemas/MarketplaceAdvertiser"},"billingProfileUsageId":{"description":"Billing profile usage unique identifier.","type":"string"},"billingProfiles":{"items":{"$ref":"#/components/schemas/BillingProfile"},"maxItems":2,"minItems":0,"type":"array"},"fallbackBillingProfiles":{"items":{"$ref":"#/components/schemas/BillingProfile"},"maxItems":1,"minItems":0,"type":"array"},"status":{"$ref":"#/components/schemas/BillingProfileStatus"}},"type":"object"},"BillingStatementErrorResponse":{"properties":{"billingStatementRequestId":{"description":"Billing statement request identifier.","type":"string"},"code":{"description":"The code describing the error reason.","type":"string"},"details":{"description":"A human-readable description of the response.","type":"string"}},"type":"object"},"CountryCode":{"enum":["AE","AU","BE","BR","CA","CL","CO","DE","EG","ES","FR","IE","IN","IT","JP","MX","NG","NL","PL","SA","SE","SG","TR","UK","US","ZA"],"type":"string"},"CreateBillingProfile":{"allOf":[{"$ref":"#/components/schemas/BaseBillingProfile"},{"properties":{"billingParty":{"description":"Choose `AGENCY` if you are an agency representing an advertiser. Choose `BRAND_OWNER` if you are advertising for your product's sales","type":"string"},"isBillTo":{"description":"Whether the billingProfile created should be used for invoicing, taxation and other billing workflows. If the `billTo=false` is setthe `billingName` of that profile is used to determine the 'Advertiser Name' shown to consumers.To ensure accuracy of the information shown on the store, we request that you review the ‘Advertiser Name’ and ‘Payer Name’ in our ad systems and update them if required","type":"boolean"}},"required":["billingParty","isBillTo"],"type":"object"}],"description":"Object encapsulating information for creating a billing profile","type":"object"},"CreateBillingProfilesRequest":{"description":"Contains a list of one or more billing profiles to be created.","properties":{"billingProfiles":{"items":{"$ref":"#/components/schemas/CreateBillingProfile"},"maxItems":100,"minItems":0,"type":"array"}},"required":["billingProfiles"],"type":"object"},"CreateBillingStatementRequest":{"properties":{"countryCodes":{"description":"List of countries for which billing statements are to be fetched. If no country codes are passed in the request, the statement will be generated for all the advertising countries by default.","items":{"$ref":"#/components/schemas/CountryCode","type":"string"},"maxItems":30,"minItems":0,"type":"array"},"endDate":{"description":"End date of the invoice summary period for a report in the format YYYY-MM-DD.","example":"2022-09-10","format":"date","pattern":"/([0-9]{4})-(?:[0-9]{2})-([0-9]{2})/","type":"string"},"format":{"default":"CSV","description":"Format of the file, such as, for billing statements, etc.","enum":["CSV"],"type":"string","x-amazon-advertising-package":"AdvertisingBillingApiService"},"locale":{"description":"Preferred locale can be chosen among the list of valid language codes. Check the table below for supported language code. <br/><br/><table border=1><caption> **Supported Locales Table** </caption><tr> <th>Locale code</th> <th>Language</th></tr><tr> <td>en_US</td> <td>English</td></tr><tr> <td>ja_JP</td> <td>Japanese</td></tr><tr> <td>ar_SA</td> <td>Arabic</td></tr><tr> <td>de_DE</td> <td>German</td></tr><tr> <td>fr_FR</td> <td>French</td></tr><tr> <td>it_IT</td> <td>Italian</td></tr><tr> <td>es_MX</td> <td>Spanish</td></tr><tr> <td>nl_NL</td> <td>Dutch</td></tr><tr> <td>sv_SE</td> <td>Swedish</td></tr><tr> <td>pl_PL</td> <td>Polish</td></tr><tr> <td>tr_TR</td> <td>Turkish</td></tr> <tr> <td>pt_BR</td> <td>Portuguese</td></tr> </table>","type":"string","x-amazon-advertising-package":"AdvertisingBillingApiService"},"startDate":{"description":"Start date of the invoice summary period for a report in the format YYYY-MM-DD.","example":"2022-09-10","format":"date","pattern":"/([0-9]{4})-(?:[0-9]{2})-([0-9]{2})/","type":"string"}},"required":["endDate","locale","startDate"],"type":"object"},"CreateBillingStatementResponse":{"properties":{"billingStatementRequestId":{"description":"Billing statement request identifier.","type":"string"},"details":{"description":"A human-readable description of the response.","type":"string"}},"type":"object"},"CreateOrUpdateBillingProfilesResponse":{"description":"Contains a list of one or more responses corresponding to each billing profile along with index.","properties":{"billingProfiles":{"description":"Segregated list of success and error responses for each billing profile in request payload.","properties":{"error":{"description":"List of error responses for each billing profile in request payload.","items":{"properties":{"billingProfileId":{"description":"Billing profile identifier corresponding to a billing profile in request payload.","type":"string"},"errors":{"description":"List of errors for a particular billing profile in request payload.","items":{"$ref":"#/components/schemas/ErrorResponse"},"maxItems":200,"minItems":0,"type":"array"},"index":{"description":"Indicates the index of a billing profile in request payload.","format":"int64","type":"integer"}},"type":"object"},"maxItems":100,"minItems":0,"type":"array"},"success":{"description":"List of success responses for each billing profile in request payload.","items":{"properties":{"billingProfileId":{"description":"Billing profile identifier corresponding to a billing profile in the list.","type":"string"},"index":{"description":"Indicates the index of billing profile in the list of request payload.","format":"int64","type":"integer"}},"type":"object"},"maxItems":100,"minItems":0,"type":"array"}},"type":"object"}},"type":"object"},"CurrencyAmount":{"description":"Identifies the amount along with currency code.","properties":{"amount":{"type":"number"},"currencyCode":{"type":"string"}},"required":["amount","currencyCode"],"type":"object"},"DocType":{"description":"Supported type of billing document to be specified through query parameter. \nPrepayment Receipts do not share the same documentId as the other DocTypes and must be requested separately.","enum":["CREDIT_MEMO","GIS_CREDIT_MEMO","GIS_INVOICE","INVOICE","PAYMENT_COMPLEMENT","PREPAYMENT_RECEIPT"],"type":"string"},"ErrorResponse":{"description":"Contains the machine-readable error code and human-readable details.","properties":{"errorCode":{"description":"The code describing the error reason.","type":"string"},"errorMessage":{"description":"A human-readable description of the response.","type":"string"}},"type":"object"},"GetBillingProfileUsageRequest":{"description":"The request body to fetch billing profiles linked to each country of global ads account.","properties":{"expandBillingProfile":{"default":"false","description":"By default only the billingProfileId linked to the country will be returned. Choose `true` if you would like to see the content of the billing profiles linked to a country","type":"boolean"},"expandFallbackBillingProfile":{"default":"false","description":"Choose `true` if you would like to see the information currently being used for billing for this marketplace. Useful when the billingProfileUsage status is not `OK` and the billing information coundn't be propagated for that country. If set to `true`, `fallbackBillingProfiles` attribute will be returned.","type":"boolean"},"filters":{"description":"Filter object to be used to fetch list of billing profile usage(s).","properties":{"advertiserFilter":{"description":"Indicates list of advertiser identifiers(s) for which billing profile(s) needs to be fetched.","items":{"$ref":"#/components/schemas/MarketplaceAdvertiser"},"maxItems":1,"minItems":0,"type":"array"}},"type":"object"},"maxResults":{"default":"100","description":"Max results / billing profile usage(s) to be shown in a single page.","format":"int64","type":"integer"},"nextToken":{"description":"Offset to fetch next page with list of billing profile usage(s).","type":"string"}},"type":"object"},"GetBillingProfileUsageResponse":{"description":"Contains billing profile usages: list of advertisers and applied billing profile.","properties":{"billingProfileUsages":{"items":{"$ref":"#/components/schemas/BillingProfileUsage"},"maxItems":100,"minItems":0,"type":"array"},"maxResults":{"default":"100","description":"Max results / billing profile usage(s) to be shown in a single page.","format":"int64","type":"integer"},"nextToken":{"description":"Indicates the pagination token to be used to access next page.","type":"string"}},"type":"object"},"GetBillingProfilesRequest":{"description":"Payload to fetch list of billing profile(s).","properties":{"filters":{"description":"Filter object to be used to fetch list of billing profile(s).","properties":{"billingProfileIdFilter":{"description":"Indicates list of billing profile identifier(s) for which billing profile(s) needs to be fetched.","items":{"type":"string"},"maxItems":20,"minItems":0,"type":"array"},"defaultBillingProfileFilter":{"default":"false","description":"Indicates if default billing profile needs to be fetched.","type":"boolean"}},"type":"object"},"maxResults":{"default":"100","description":"Max results / billing profile(s) to be shown in a single page.","format":"int64","type":"integer"},"nextToken":{"description":"Offset to fetch next page with list of billing profile(s).","type":"string"}},"type":"object"},"GetBillingProfilesResponse":{"description":"Paginated list of billing profile(s) response.","properties":{"billingProfiles":{"description":"Indicates list of billing profile(s).","items":{"$ref":"#/components/schemas/BillingProfile"},"maxItems":100,"minItems":0,"type":"array"},"maxResults":{"default":"100","description":"Max results / billing profile(s) to be shown in a single page.","format":"int64","type":"integer"},"nextToken":{"description":"Offset to fetch next page with list of billing profile(s).","type":"string"}},"type":"object"},"GetBillingStatementResponse":{"properties":{"details":{"description":"The human-readable description of the response.","type":"string"},"reportStatus":{"description":"The request status of the billing statement.","enum":["FAILED","IN_PROGRESS","SUCCESS"],"type":"string"},"s3DownloadLink":{"description":"Download link of the billing statement file. Only when reportStatus is SUCCESS.","type":"string"}},"type":"object"},"GetDocumentResponseContent":{"properties":{"availableDocuments":{"items":{"$ref":"#/components/schemas/AvailableDocumentResponse"},"maxItems":100,"minItems":0,"type":"array"},"unavailableDocuments":{"items":{"$ref":"#/components/schemas/UnavailableDocumentResponse"},"maxItems":100,"minItems":0,"type":"array"}},"type":"object"},"InternalServerExceptionResponseContent":{"description":"Thrown when service encounters unexpected error during processing of request.","properties":{"code":{"description":"Error Code.","minLength":1,"type":"string"},"message":{"description":"Human readable response message.","minLength":1,"type":"string"}},"required":["code","message"],"type":"object"},"Locale":{"description":"Preferred locale can be chosen among the list of valid language codes. Check the table below for supported language code. <br/><br/><table border=1><caption> **Supported Locales Table** </caption><tr> <th>Locale code</th> <th>Language</th></tr><tr> <td>en_US</td> <td>English</td></tr><tr> <td>ja_JP</td> <td>Japanese</td></tr><tr> <td>ar_SA</td> <td>Arabic</td></tr><tr> <td>de_DE</td> <td>German</td></tr><tr> <td>fr_FR</td> <td>French</td></tr><tr> <td>it_IT</td> <td>Italian</td></tr><tr> <td>es_MX</td> <td>Spanish</td></tr><tr> <td>nl_NL</td> <td>Dutch</td></tr><tr> <td>sv_SE</td> <td>Swedish</td></tr><tr> <td>pl_PL</td> <td>Polish</td></tr><tr> <td>tr_TR</td> <td>Turkish</td></tr> <tr> <td>pt_BR</td> <td>Portuguese</td></tr> </table>","type":"string"},"MarketplaceAdvertiser":{"description":"Represents one country inside a global account","properties":{"countryCode":{"$ref":"#/components/schemas/CountryCode"}},"required":["countryCode"],"type":"object"},"ResourceNotFoundExceptionResponseContent":{"description":"Request references a resource which does not exist.","properties":{"code":{"description":"Error Code.","minLength":1,"type":"string"},"message":{"description":"Human readable response message.","minLength":1,"type":"string"}},"required":["code","message"],"type":"object"},"UnauthorizedExceptionResponseContent":{"properties":{"code":{"description":"Error Code.","minLength":1,"type":"string"},"message":{"description":"Human readable response message.","minLength":1,"type":"string"}},"required":["code","message"],"type":"object"},"UnavailableDocumentResponse":{"properties":{"contentType":{"type":"string"},"docType":{"$ref":"#/components/schemas/DocType"},"fileName":{"type":"string"},"reason":{"type":"string"},"storagePath":{"type":"string"}},"type":"object"},"UpdateBillingProfile":{"allOf":[{"$ref":"#/components/schemas/BaseBillingProfile"},{"properties":{"billingProfileId":{"description":"Billing profile identifier which will be used to identify a billing profile. This identifier will NOT affect billing process.","type":"string"}},"required":["billingProfileId"],"type":"object"}],"description":"Object encapsulating information for updating a billing profile","type":"object"},"UpdateBillingProfilesRequest":{"description":"Contains a list of one or more billing profiles to be updated.","properties":{"billingProfiles":{"items":{"$ref":"#/components/schemas/UpdateBillingProfile"},"maxItems":100,"minItems":0,"type":"array"}},"type":"object"},"ValidationExceptionResponseContent":{"description":"The input fails to satisfy the constraints specified by an Advertising API service.","properties":{"code":{"description":"Error Code.","minLength":1,"type":"string"},"message":{"description":"Human readable response message.","minLength":1,"type":"string"}},"required":["code","message"],"type":"object"},"adProgram":{"description":"Sponsored Ads only. This field indicates the ad type (such as Sponsored Products, Sponsored Brands or Sponsored Display).\n","enum":["AMAZON LIVE","CREATOR CONNECTIONS","SPONSORED BRANDS","SPONSORED DISPLAY","SPONSORED DISPLAY FOR FIRE TV","SPONSORED PRODUCT"],"title":"Program Name","type":"string"},"address":{"properties":{"addressLine1":{"title":"Address Line 1","type":"string"},"addressLine2":{"title":"Address Line 2","type":"string"},"addressLine3":{"title":"Address Line 3","type":"string"},"attentionName":{"title":"Company Name","type":"string"},"city":{"title":"City","type":"string"},"companyName":{"title":"Company Name","type":"string"},"countryCode":{"$ref":"#/components/schemas/countryCode"},"postalCode":{"title":"Postal Code","type":"string"},"stateOrRegion":{"title":"State Or Region","type":"string"}},"required":["addressLine1","addressLine2","addressLine3","city","companyName","countryCode","postalCode","stateOrRegion"],"title":"Address","type":"object"},"adjustment":{"properties":{"accountingDate":{"$ref":"#/components/schemas/date"},"amount":{"$ref":"#/components/schemas/currencyAmount"},"comments":{"title":"Comments","type":"string"},"fees":{"description":"Charges can include different fees (see feeType below).\n","items":{"$ref":"#/components/schemas/fee"},"title":"Fees","type":"array"},"portfolioId":{"description":"Sponsored Ads only. This identifier maps to one of the portfolios listed in the portfolios section.\n","format":"int64","title":"Portfolio ID","type":"integer"}},"required":["accountingDate","amount"],"title":"Adjustment","type":"object"},"adjustments":{"description":"List of adjustments (positive and negative) applied to this invoice.","items":{"$ref":"#/components/schemas/adjustment"},"title":"Adjustments","type":"array"},"advertiserMarketplace":{"properties":{"advertiserId":{"example":"A123C5343OPX47","type":"string"},"advertiserType":{"$ref":"#/components/schemas/advertiserTypes"},"marketplaceId":{"example":"A2NODRKZP88ZB9","type":"string"}},"required":["advertiserId","marketplaceId"],"title":"Advertiser Marketplace","type":"object"},"advertiserTypes":{"enum":["AGENCY","DSP_ADVERTISING_ACCOUNT","SELLER","VENDOR"],"title":"Advertiser Types","type":"string"},"billingAggregation":{"properties":{"billingAggregationId":{"description":"An identifier that helps associate this invoice with specific billing entities, such as campaigns or rodeo advertiser accounts.","example":"123","type":"string"},"billingAggregationResourcePath":{"description":"The resource path to suffix to the base URL endpoints to retrieve the corresponding billing aggregation entity, such as a specific campaign or all active campaigns under DSP Rodeo Advertiser. An example URL after suffixing will be 'https://advertising-api.amazon.com/dsp/orders/123'. The base URL endpoints for the different regions and marketplaces can be found in the Amazon Advertising API Reference Portal.","example":"/dsp/orders/123","type":"string"},"billingLevel":{"$ref":"#/components/schemas/billingLevel"}},"type":"object"},"billingLevel":{"description":"Configured on the Rodeo portal and only applicable to ADSP-SS, this flag reflects the basis on which campaigns are consolidated. Possible values include:\n- 'CAMPAIGN': Billing is based on individual campaigns. \n- 'ACCOUNT': Billing is based on the Rodeo DSP advertiser account.","enum":["ACCOUNT","CAMPAIGN"],"type":"string"},"billingNotification":{"properties":{"advertiserMarketplaces":{"items":{"$ref":"#/components/schemas/advertiserMarketplace"},"maxItems":30,"minItems":1,"type":"array"},"description":{"example":"The credit card associated with your billing account in 5 countries has expired. To continue advertising without interruption, update your credit card information in payment settings.","type":"string"},"impact":{"$ref":"#/components/schemas/billingNotificationImpact"},"notificationName":{"$ref":"#/components/schemas/billingNotificationNames"},"paymentDueDate":{"format":"date-time","type":"string"},"priority":{"format":"int32","type":"integer"},"severity":{"$ref":"#/components/schemas/billingNotificationSeverity"},"suspensionDate":{"format":"date-time","type":"string"},"title":{"example":"Your credit card has expired","type":"string"}},"required":["description","impact","notificationName","priority","severity","title"],"title":"Billing Notification","type":"object"},"billingNotificationImpact":{"enum":["CAMPAIGNS_SUSPENDED","NO_IMPACT"],"title":"Billing Notification Impact","type":"string"},"billingNotificationNames":{"enum":["ACCOUNT_ERROR","ACCOUNT_ERROR_IN_SELLER","AUTHOR_REGISTRATION_NOT_FOUND","BAD_DEBT_SUSPENSION","BILLING_ADDRESS_REGISTRATION_NOT_FOUND","BILLING_PROFILE_ERROR","BILLING_PROFILE_INVALID_DSA_INFO","BILLING_PROFILE_INVALID_PERMISSION","BILLING_PROFILE_INVALID_TAX","CNPJ_VERIFICATION_IN_PROGRESS","CREDIT_CARD_ALLOWED_AMOUNT_FAILURE","CREDIT_CARD_AUTHENTICATION_FAILURE","CREDIT_CARD_AUTHORIZATION_FAILURE","CREDIT_CARD_AUTH_EXPIRED_FAILURE","CREDIT_CARD_CHARGE_DISPUTE_CAUSED_SUSPENSION","CREDIT_CARD_CLOSED_FAILURE","CREDIT_CARD_EXPIRED","CREDIT_CARD_EXPIRES_SOON","CREDIT_CARD_GENERIC_FAILURE","CREDIT_CARD_INELIGIBLE_CARD","CREDIT_CARD_INELIGIBLE_SHARED_CARD","CREDIT_CARD_INSUF_BAL","CREDIT_CARD_INTERNAL_FAILURE","CREDIT_CARD_INVALID_ACCOUNT_FAILURE","CREDIT_CARD_INVALID_ADDRESS_FAILURE","CREDIT_CARD_INVALID_BANK_HOLDER_FAILURE","CREDIT_CARD_INVALID_CARD_FAILURE","CREDIT_CARD_INVALID_DETAILS","CREDIT_CARD_ISSUE_WITH_CARD","CREDIT_CARD_LOCKED_CARD","CREDIT_CARD_MFA_EXPIRED_FAILURE","CREDIT_CARD_PAYMENT_FAILURE_CAUSED_SUSPENSION","CREDIT_CARD_TRANSACTION_SIZE_FAILURE","CREDIT_CARD_VERIFICATION_FAILURE","CREDIT_CARD_VERIFICATION_FAILURE_CAUSED_SUSPENSION","CREDIT_CARD_VERIFICATION_PENDING","CREDIT_CARD_VOLUME_FAILURE","CREDIT_CARD_WITH_VERIFICATION_PAYMENT_FAILURE","CREDIT_CARD_WITH_VERIFICATION_PAYMENT_FAILURE_CAUSED_SUSPENSION","CREDIT_CARD_WITH_VERIFICATION_PENDING_CAUSED_SUSPENSION","CREDIT_CARD_WITH_VERIFICATION_SUSPENSION_WITH_PAYMENT_IN_PROGRESS","DEDUCT_FROM_PROCEEDS_PAYMENT_FAILURE_CAUSED_SUSPENSION","DEDUCT_FROM_PROCEEDS_WITH_CREDIT_CARD_FALLBACK_PAYMENT_FAILURE_CAUSED_SUSPENSION","DEDUCT_FROM_PROCEEDS_WITH_CREDIT_LIMIT_ELIGIBLE","DEDUCT_FROM_PROCEEDS_WITH_MONTHLY_INVOICE_ELIGIBLE","DIRECT_DEBIT_PAYMENT_PENDING","DPS_DENIED_PARTY","DPS_VERIFICATION_PENDING","INACTIVE_SELLER_ACCOUNT_CAUSED_SUSPENSION","INVALID_PAYMENT_REGISTRATION","MERCH_ON_DEMAND_REGISTRATION_NOT_FOUND","PAY_BY_INVOICE_OVERDUE_PAYMENT","PAY_BY_INVOICE_OVERDUE_PAYMENT_CAUSED_SUSPENSION","PAY_BY_INVOICE_OVERDUE_PAYMENT_PENDING_SUSPENSION","PAY_BY_INVOICE_UPCOMING_PAYMENT","PENDING_PAYMENT_REGISTRATION","PENDING_VALID_CNPJ_REGISTRATION","POLICY_VIOLATIONS","PREPAY_INSUFFICIENT_BALANCE","PRE_AUTH_FAILURE_SUSPENSION","RO_INSUFFICIENT_BALANCE","SELLER_ACCOUNT_BALANCE_LOW","SELLER_ACCOUNT_BALANCE_RESERVED","SELLER_ACCOUNT_INSUFFICIENT_AVAILABLE_BALANCE_CAUSED_SUSPENSION","SELLER_ACCOUNT_INSUFFICIENT_GROSS_BALANCE_CAUSED_SUSPENSION","SELLER_ACCOUNT_MISSING_BACKUP","SELLER_ACCOUNT_PAYMENT_FAILURE_CAUSED_SUSPENSION","SELLER_ACCOUNT_WITH_CREDIT_CARD_FALLBACK_PAYMENT_FAILURE_CAUSED_SUSPENSION","STORED_VALUE_AUTO_RELOAD_PAYMENT_FAILURE","SUSPICIOUS_ACTIVITY","TAX_ID_VALIDATION_IN_PROGRESS","TAX_ID_VALIDATION_REJECTED"],"example":"CREDIT_CARD_EXPIRED","title":"Billing Notification Names","type":"string"},"billingNotificationSeverity":{"enum":["ALERT","INFO","WARNING"],"title":"Billing Notification Severity","type":"string"},"billingStatus":{"properties":{"billingStatusCode":{"$ref":"#/components/schemas/billingStatusCode"},"message":{"type":"string"}},"required":["billingStatusCode","message"],"title":"Billing Status","type":"object"},"billingStatusCode":{"enum":["ACCOUNT_BILLING_ISSUE","INVALID_PAYMENT_REGISTRATION","PAYMENT_METHOD_EXPIRED","PAYMENT_METHOD_VERIFICATION_FAILED","PENDING_BILLING_REGISTRATION","PENDING_PAYMENT_REGISTRATION","PENDING_TAX_REGISTRATION","RESERVE_ORDER_BALANCE_TOO_LOW","STORED_VALUE_BALANCE_TOO_LOW","VALID_BILLING_STATUS"],"title":"Billing Status Code","type":"string"},"bulkGetBillingNotificationsError":{"properties":{"advertiserMarketplace":{"$ref":"#/components/schemas/advertiserMarketplace"},"advertiserMarketplaces":{"items":{"$ref":"#/components/schemas/advertiserMarketplace"},"maxItems":30,"minItems":1,"type":"array"},"description":{"type":"string"},"errorCode":{"$ref":"#/components/schemas/bulkGetBillingNotificationsErrorCodes"},"index":{"format":"int32","type":"integer"}},"required":["description","errorCode","index"],"title":"Bulk Get Billing Notifications Error","type":"object"},"bulkGetBillingNotificationsErrorCodes":{"enum":["BAD_REQUEST","INTERNAL_ERROR","NOT_AUTHORIZED","NOT_FOUND"],"title":"Bulk Get Billing Notifications Error Codes","type":"string"},"bulkGetBillingNotificationsErrorResponse":{"properties":{"code":{"type":"string"},"message":{"type":"string"}},"title":"Bulk Get Billing Notifications Error Response","type":"object"},"bulkGetBillingNotificationsRequestBody":{"description":"The properties needed to get the billing notifications for a set of advertisers.","properties":{"advertiserMarketplaces":{"items":{"$ref":"#/components/schemas/advertiserMarketplace"},"maxItems":30,"minItems":1,"type":"array"},"locale":{"$ref":"#/components/schemas/locale"}},"title":"Bulk Get Billing Notifications Request Body","type":"object"},"bulkGetBillingNotificationsResponse":{"properties":{"error":{"items":{"$ref":"#/components/schemas/bulkGetBillingNotificationsError"},"maxItems":30,"minItems":0,"type":"array"},"success":{"items":{"$ref":"#/components/schemas/bulkGetBillingNotificationsSuccess"},"maxItems":30,"minItems":0,"type":"array"}},"required":["error","success"],"title":"Bulk Get Billing Notifications Response","type":"object"},"bulkGetBillingNotificationsSuccess":{"properties":{"advertiserMarketplace":{"$ref":"#/components/schemas/advertiserMarketplace"},"billingNotifications":{"items":{"$ref":"#/components/schemas/billingNotification"},"maxItems":30,"minItems":0,"type":"array"},"index":{"format":"int32","type":"integer"}},"required":["billingNotifications","index"],"title":"Bulk Get Billing Notifications Map","type":"object"},"bulkGetBillingStatusError":{"properties":{"advertiserMarketplace":{"$ref":"#/components/schemas/advertiserMarketplace"},"description":{"type":"string"},"errorCode":{"$ref":"#/components/schemas/bulkGetBillingStatusErrorCodes"},"index":{"format":"int32","type":"integer"}},"required":["advertiserId","index"],"title":"Bulk Get Billing Status Error","type":"object"},"bulkGetBillingStatusErrorCodes":{"enum":["BAD_REQUEST","INTERNAL_ERROR","NOT_AUTHORIZED","NOT_FOUND"],"title":"Bulk Get Billing Status Error Codes","type":"string"},"bulkGetBillingStatusErrorResponse":{"properties":{"message":{"type":"string"}},"title":"Bulk Get Billing Status Error Response","type":"object"},"bulkGetBillingStatusResponse":{"properties":{"error":{"items":{"$ref":"#/components/schemas/bulkGetBillingStatusError"},"maxItems":30,"minItems":0,"type":"array"},"success":{"items":{"$ref":"#/components/schemas/bulkGetBillingStatusSuccess"},"maxItems":30,"minItems":0,"type":"array"}},"required":["error","success"],"title":"Bulk Get Billing Status Response","type":"object"},"bulkGetBillingStatusSuccess":{"properties":{"advertiserMarketplace":{"$ref":"#/components/schemas/advertiserMarketplace"},"billingStatus":{"$ref":"#/components/schemas/billingStatus"},"index":{"format":"int32","type":"integer"}},"required":["advertiserMarketplace","billingStatus","index"],"title":"Bulk Get Billing Status Success","type":"object"},"bulkGetBillingStatusesRequestBody":{"description":"The properties needed to get the billing statuses for a set of advertisers.","properties":{"advertiserMarketplaces":{"items":{"$ref":"#/components/schemas/advertiserMarketplace"},"maxItems":30,"minItems":1,"type":"array"},"locale":{"$ref":"#/components/schemas/locale"}},"required":["advertiserMarketplaces"],"title":"Bulk Get Billing Statuses Request Body","type":"object"},"contactInfo":{"properties":{"address":{"$ref":"#/components/schemas/address"},"email":{"$ref":"#/components/schemas/email"}},"required":["address","email"],"title":"Contact Info","type":"object"},"countryCode":{"description":"ISO 3611 country code","type":"string"},"currencyAmount":{"properties":{"amount":{"title":"Amount","type":"number"},"currencyCode":{"$ref":"#/components/schemas/currencyCode"}},"title":"Currency Amount","type":"object"},"currencyCode":{"description":"The currency used for all monetary values for entities under this profile\n|Region|`countryCode`|Country Name|`currencyCode`|\n|-|-|-|-|\n|NA|US|United States|USD|\n|NA|CA|Canada|CAD|\n|NA|MX|Mexico|MXN|\n|NA|BR|Brazil|BRL|\n|EU|UK|United Kingdom|GBP|\n|EU|DE|Germany|EUR|\n|EU|FR|France|EUR|\n|EU|ES|Spain|EUR|\n|EU|IT|Italy|EUR|\n|EU|NL|Netherlands|EUR|\n|EU|AE|United Arab Emirates|AED|\n|EU|SA|Saudi Arabia|SAR|\n|EU|TR|Turkey|TRY|\n|EU|SE|Sweden|SEK|\n|EU|EG|Egypt|EGP|\n|EU|PL|Poland|PLN|\n|IN|IN|India|INR|\n|FE|JP|Japan|JPY|\n|FE|SG|Singapore|SGD|\n|FE|AU|Australia|AUD|","enum":["AED","AUD","BRL","CAD","EGP","EUR","GBP","INR","JPY","MXN","PLN","SAR","SEK","SGD","TRY","USD"],"type":"string"},"date":{"description":"Date in YYYYMMDD format","type":"string"},"documentType":{"enum":["CREDIT_NOTE","INVOICE"],"title":"Document Type","type":"string"},"email":{"properties":{"displayName":{"description":"Customer name used in email communication.\n","title":"Display Name","type":"string"},"emailAddress":{"title":"Email Address","type":"string"}},"required":["displayName","emailAddress"],"title":"Email","type":"object"},"fee":{"properties":{"cost":{"$ref":"#/components/schemas/currencyAmount"},"feeIdentifiers":{"description":"Identifiers describing attributes for different fee types.\n* countryCode: ISO 3611 country code for country specific Regulatory Advertising Fees.\n","properties":{"countryCode":{"$ref":"#/components/schemas/countryCode"}},"title":"Fee Identifiers","type":"object"},"feeType":{"description":"* `PLATFORM_FEE`: Billable fee set at the Rodeo Entity level by internal users which reflects the cost of using the Amazon DSP\n * Supply Cost * Platform Fee %\n* `AGENCY_FEE`: Non-billable fee set at the Rodeo Order level by external users which reflects the fee that the agency is charging the end customer\n * Total Cost * Agency Fee %\n* `AUDIENCE_FEE`: Billable fee automatically calculated at the Rodeo Line Item level when external users choose Amazon 1P data segments for campaign targeting\n * Impressions with Audience Fees * Audience Fee (CPM)/1000\n* `3P_[AUTO_]NON_ABSORBED_FEE`: Billable fee automatically calculated at the Rodeo Line Item level when external users choose Automotive data segments and/or DMP data segments for campaign targeting\n * Impressions * Billable 3p Fee / 1000\n* `REGULATORY_ADVERTISING_FEE`: Fees derive from ads serving in specific countries and/or for ads purchased from advertisers in specific countries during the period in which you are billed.\n* `OMNICHANNEL_METRICS_FEE`: Billable fee set at DSP order level by internal users, which reflects the cost of using Omnichannel metrics measurement\n * Supply Cost * Omnichannel Metrics Fee %\n* `3P_PREBID_FEE`: Billable fee automatically calculated when external users choose third party prebid targeting products for supply quality filtering.\n * Impressions with 3P Prebid Fees * 3P Prebid Fee (CPM)/1000 %\n* `REWARDED_ADS_COST`: Billable, non taxable cost calculated for the rewards distributed when external users choose Rewarded Ads creative template for campaign targeting\n","enum":["3P_AUTO_NON_ABSORBED_FEE","3P_NON_ABSORBED_FEE","3P_PREBID_FEE","AUDIENCE_FEE","OMNICHANNEL_METRICS_FEE","PLATFORM_FEE","REGULATORY_ADVERTISING_FEE","REWARDED_ADS_COST"],"type":"string"}},"required":["cost","feeType"],"title":"Fee","type":"object"},"governmentInvoiceInformation":{"description":"Government invoice data is provided in marketplaces (such as Italy or India) that require a government-assigned invoice ID. This object contains this identifier, along with the type of transaction (which will always be a debit in the case of an invoice) and presigned url link to download e-invoice document with expiry time of 45 sec.\n","properties":{"countryCode":{"$ref":"#/components/schemas/countryCode"},"governmentDocumentS3Link":{"description":"PreSigned URL to grant time-limited download access for govt invoice pdf","type":"string"},"governmentInvoiceId":{"description":"Government generated ID","type":"string"},"governmentXmlDocumentS3Link":{"description":"PreSigned URL to grant time-limited download access for govt invoice XML","type":"string"},"transactionType":{"enum":["CREDIT","DEBIT"],"type":"string"}},"title":"Government Invoice Information","type":"object"},"invoice":{"properties":{"adjustments":{"$ref":"#/components/schemas/adjustments"},"governmentInvoiceInformation":{"$ref":"#/components/schemas/governmentInvoiceInformation"},"invoiceLines":{"$ref":"#/components/schemas/invoiceLines"},"invoiceSummary":{"$ref":"#/components/schemas/invoiceSummary"},"issuerContactInfo":{"$ref":"#/components/schemas/contactInfo"},"payerContactInfo":{"$ref":"#/components/schemas/contactInfo"},"payments":{"$ref":"#/components/schemas/payments"},"portfolios":{"$ref":"#/components/schemas/portfolios"},"promotions":{"$ref":"#/components/schemas/promotions"},"taxDetail":{"$ref":"#/components/schemas/taxDetail"},"thirdPartyContactInfo":{"$ref":"#/components/schemas/thirdPartyContactInformation"}},"required":["adjustments","invoiceLines","invoiceSummary","issuerContactInfo","payerContactInfo","payments","portfolios","promotions","taxDetail","thirdPartyContactInfo"],"title":"Invoice","type":"object"},"invoiceLine":{"properties":{"campaignId":{"format":"int64","title":"Campaign ID","type":"integer"},"campaignName":{"title":"Campaign Name","type":"string"},"campaignTags":{"additionalProperties":{"description":"The key-value pair for the campaign tag.","type":"string"},"description":"Campaign tags in the form of string key-value pairs.","title":"Campaign Tags","type":"object"},"commissionAmount":{"$ref":"#/components/schemas/currencyAmount"},"commissionRate":{"title":"Commission Rate","type":"number"},"cost":{"$ref":"#/components/schemas/currencyAmount"},"costEventCount":{"description":"Number of clicks/impressions charged","format":"int64","title":"Event Count","type":"integer"},"costEventType":{"description":"Type of event charged (clicks or impressions)","enum":["CLICKS","IMPRESSIONS"],"title":"Cost Event Type","type":"string"},"costPerEventType":{"description":"Ad spends cost (Cost exclusive of adjustments/promotions/fees/etc) per unit (thousand impressions/clicks).\n","title":"Cost Per Event Type","type":"number"},"costPerUnit":{"title":"Cost per Unit","type":"number"},"fees":{"description":"Charges can include different fees (see feeType below).\n","items":{"$ref":"#/components/schemas/fee"},"title":"Fees","type":"array"},"name":{"title":"Invoice Line Name","type":"string"},"portfolioId":{"description":"Sponsored Ads only. This identifier maps to one of the portfolios listed in the portfolios section.\n","format":"int64","title":"Portfolio ID","type":"integer"},"priceType":{"description":"Metric used for performance measurement.","enum":["CPC","CPM"],"title":"Price Type","type":"string"},"programName":{"$ref":"#/components/schemas/adProgram"},"promotionAmount":{"$ref":"#/components/schemas/currencyAmount"},"purchaseOrderNumber":{"title":"DSP only. Campaign-level purchase order number.","type":"string"},"supplyCost":{"$ref":"#/components/schemas/currencyAmount"}},"required":["cost","costEventCount","costEventType","costPerUnit","name","priceType"],"title":"Invoice Line","type":"object"},"invoiceLines":{"description":"Line items for this invoice. For Sponsored Ads, this will be a per-campaign breakdown of charges. For DSP, this will be the line items for the campaign getting invoiced.","items":{"$ref":"#/components/schemas/invoiceLine"},"title":"Invoice Lines","type":"array"},"invoiceStatus":{"description":"* `ISSUED`: An invoice is issued when its charges are finalized and tax is computed on the total amount. \n* `PAID_IN_PART`: When a partial payment is received, the invoice status will change to paid in part.\n* `PAID_IN_PART`: One full payment has been received, the invoice will be paid in full.\n* `WRITTEN_OFF`: If an invoice is written off because of an error, the status will be updated to written off.\n","enum":["ACCUMULATING","ISSUED","PAID_IN_FULL","PAID_IN_PART","PROCESSING","WRITTEN_OFF"],"title":"Invoice Status","type":"string"},"invoiceSummary":{"properties":{"amountDue":{"$ref":"#/components/schemas/currencyAmount"},"billingAggregation":{"$ref":"#/components/schemas/billingAggregation"},"downloadableDocuments":{"description":"List of downloadable documents associated with this invoice and accessible from the advertising console.\n","items":{"$ref":"#/components/schemas/documentType"},"type":"array"},"dueDate":{"$ref":"#/components/schemas/date"},"fees":{"description":"Regulatory Advertising Fees.\n","items":{"$ref":"#/components/schemas/fee"},"title":"Fees","type":"array"},"fromDate":{"$ref":"#/components/schemas/date"},"id":{"title":"Invoice Id","type":"string"},"invoiceDate":{"$ref":"#/components/schemas/date"},"paymentMethod":{"$ref":"#/components/schemas/paymentMethod"},"paymentTermsDays":{"type":"integer"},"paymentTermsType":{"enum":["EOM","NET"],"type":"string"},"purchaseOrderNumber":{"title":"Sponsored Ads only. Account-level purchase order number.","type":"string"},"remainingAmountDue":{"$ref":"#/components/schemas/currencyAmount"},"remainingFees":{"description":"Remaining Regulatory Advertising Fees.\n","items":{"$ref":"#/components/schemas/fee"},"title":"Remaining Fees","type":"array"},"remainingTaxAmountDue":{"$ref":"#/components/schemas/currencyAmount"},"status":{"$ref":"#/components/schemas/invoiceStatus"},"taxAmountDue":{"$ref":"#/components/schemas/currencyAmount"},"taxRate":{"type":"number"},"toDate":{"$ref":"#/components/schemas/date"}},"required":["amountDue","fromDate","id","invoiceDate","remainingAmountDue","status","toDate"],"title":"Invoice Summary","type":"object"},"locale":{"enum":["ar_AE","bn_IN","cs_CZ","de_DE","en_AE","en_AU","en_CA","en_GB","en_IN","en_NG","en_SG","en_US","en_ZA","es_CL","es_CO","es_ES","es_MX","es_US","fr_BE","fr_CA","fr_FR","he_IL","hi_IN","it_IT","ja_JP","ko_KR","ml_IN","mr_IN","nl_BE","nl_NL","pl_PL","pt_BR","pt_PT","sv_SE","ta_IN","te_IN","tr_TR","zh_CN","zh_TW"],"example":"en_US","title":"Locale","type":"string"},"payment":{"properties":{"amount":{"$ref":"#/components/schemas/currencyAmount"},"currentPaymentAttemptDate":{"$ref":"#/components/schemas/date"},"id":{"format":"int64","type":"integer"},"lastPaymentAttemptDate":{"$ref":"#/components/schemas/date"},"nextPaymentAttemptDate":{"$ref":"#/components/schemas/date"},"paymentMethod":{"$ref":"#/components/schemas/paymentMethod"},"reason":{"description":"Provides additional details and reason for the payment status","type":"string"},"refundedAmount":{"$ref":"#/components/schemas/currencyAmount"},"status":{"enum":["FAILED","PROCESSING","REFUNDED","SUCCEEDED","VERIFICATION_REQUIRED","VOIDED"],"type":"string"}},"required":["amount","id","paymentMethod","status"],"title":"Payment","type":"object"},"paymentMethod":{"enum":["CREDIT_CARD","DEDUCT_FROM_PAYMENT","DIRECT_DEBIT","ELECTRONIC_FUNDS_TRANSFER","PREPAY","UNIFIED_BILLING"],"type":"string"},"payments":{"description":"List of payments made against the invoice.","items":{"$ref":"#/components/schemas/payment"},"title":"Payments","type":"array"},"portfolio":{"properties":{"feeAmount":{"$ref":"#/components/schemas/currencyAmount"},"id":{"title":"Portfolio ID","type":"integer"},"name":{"title":"Portfolio Name","type":"string"},"totalAmount":{"$ref":"#/components/schemas/currencyAmount"}},"required":["id","name","totalAmount"],"title":"Portfolio","type":"object"},"portfolios":{"description":"Sponsored Ads only. This is a list of portfolios with their name, ID and the total cost of the campaign(s) they contain. This totalAmount corresponds to the sum of the invoice lines tagged with the ID of this portfolio.\n","items":{"$ref":"#/components/schemas/portfolio"},"title":"Portfolios","type":"array"},"promotion":{"properties":{"amount":{"$ref":"#/components/schemas/currencyAmount"},"description":{"title":"Description","type":"string"},"lastConsumedDate":{"$ref":"#/components/schemas/date"}},"required":["amount","description","lastConsumedDate"],"title":"Promotion","type":"object"},"promotions":{"description":"List of promotions applied to the charges in this invoice.","items":{"$ref":"#/components/schemas/promotion"},"title":"Promotions","type":"array"},"taxBreakup":{"properties":{"issuerJurisdiction":{"description":"Tax jurisdiction of issuer (Amazon billing entity)\n","title":"Issuer Jurisdiction","type":"string"},"issuerTaxInformation":{"properties":{"taxId":{"description":"Tax registration with government (Ex: VAT ID, GST ID)\n","title":"Tax ID","type":"string"}},"required":["taxId"],"title":"Issuer Tax Registration Info","type":"object"},"payerJurisdiction":{"description":"Tax jurisdiction of payer (billed customer)\n","title":"Issuer Jurisdiction","type":"string"},"payerTaxInformation":{"properties":{"taxId":{"description":"Tax registration with government (Ex: VAT ID, GST ID)\n","title":"Tax ID","type":"string"}},"title":"Payer Tax Registration Info","type":"object"},"taxAmount":{"$ref":"#/components/schemas/currencyAmount"},"taxName":{"title":"Tax Name","type":"string"},"taxRate":{"title":"Tax Rate","type":"number"},"taxedJurisdictionName":{"description":"Tax jurisdiction for which tax applies, this can be at the country, state or local level.\n","title":"Taxed Jurisdiction Name","type":"string"},"thirdPartyTaxInformation":{"properties":{"taxId":{"description":"Tax registration with government (Ex: VAT ID, GST ID)\n","title":"Tax ID","type":"string"}},"required":["taxId"],"title":"Third Party Tax Registration Info","type":"object"}},"required":["issuerJurisdiction","issuerTaxInformation","payerTaxInformation","taxAmount","taxName","taxRate","taxedJurisdictionName"],"title":"Tax Breakup","type":"object"},"taxDetail":{"properties":{"permanentAccountNumber":{"description":"**IN only** field that represents the tax account number of the billed entity entered on AMS portal.\n","title":"Permanent Account Number","type":"string"},"taxBreakups":{"description":"List of taxes applied on the transaction for this invoice.","items":{"$ref":"#/components/schemas/taxBreakup"},"title":"TaxBreakups","type":"array"},"taxCalculationDate":{"$ref":"#/components/schemas/date"}},"required":["taxBreakups","taxCalculationDate"],"title":"Tax Detail","type":"object"},"thirdPartyContactInformation":{"description":"Additional contacts. This field is used in cases such as Loi Sapin in France where both advertiser and agency addresses need to be provided.\n","items":{"$ref":"#/components/schemas/contactInfo"},"title":"Third Party Contact Info","type":"array"}},"securitySchemes":{}},"info":{"description":"APIs that enable integrators to manage different aspects of billing for their account like Addresses, Taxes, Payments, Invoices etc..","title":"Advertising Billing","version":"3.0"},"openapi":"3.0.1","paths":{"/billing/documents/{documentId}":{"get":{"description":"Gets billing document(s) with id.\n\n**Authorized resource type**:\nGlobal Ad Account ID, Profile ID\n\n**Parameter name**:\nAmazon-Ads-AccountId\n\n**Parameter in**:\nheader\n\n**Requires one of these permissions**:\n[\"nemo_transactions_view\",\"nemo_transactions_edit\",\"MasterAccount_Viewer\",\"MasterAccount_Manager\",\"ManagerAccount_Dev\"]\n\n**Authorized resource type**:\nGlobal Manager Account ID, Profile ID\n\n**Parameter name**:\nAmazon-Advertising-API-Manager-Account\n\n**Parameter in**:\nheader\n\n**Requires one of these permissions**:\n[\"nemo_transactions_view\",\"nemo_transactions_edit\",\"MasterAccount_Viewer\",\"MasterAccount_Manager\",\"ManagerAccount_Dev\"]\n\n**Authorized resource type**:\nDSP Rodeo Entity ID, DSP Advertiser Account ID\n\n**Parameter name**:\nAmazon-Ads-AccountId\n\n**Parameter in**:\nheader\n\n**Requires one of these permissions**:\n[]","operationId":"GetDocument","parameters":[{"in":"path","name":"documentId","required":true,"schema":{"type":"string"}},{"explode":true,"in":"query","name":"docType","required":true,"schema":{"items":{"$ref":"#/components/schemas/DocType"},"maxItems":6,"minItems":1,"type":"array"},"style":"form"},{"description":"Account identifier","in":"header","name":"Amazon-Ads-AccountId","schema":{"description":"Account identifier","type":"string"}},{"description":"The identifier of a client associated with a \"Login with Amazon\" account.","in":"header","name":"Amazon-Advertising-API-ClientId","required":true,"schema":{"description":"The identifier of a client associated with a \"Login with Amazon\" account.","type":"string"}},{"description":"The header used to pass the ID of a manager account. Use `GET` method on the Manager Accounts resource to list the manager accounts associated with the access token passed in the HTTP Authorization header and choose `managerAccountId` from the response to pass it as input.","in":"header","name":"Amazon-Advertising-API-Manager-Account","schema":{"description":"The header used to pass the ID of a manager account. Use `GET` method on the Manager Accounts resource to list the manager accounts associated with the access token passed in the HTTP Authorization header and choose `managerAccountId` from the response to pass it as input.","minLength":1,"type":"string"}}],"responses":{"200":{"content":{"application/vnd.billingDocuments.v1+json":{"schema":{"$ref":"#/components/schemas/GetDocumentResponseContent"}}},"description":"GetDocument 200 response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationExceptionResponseContent"}}},"description":"ValidationException 400 response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedExceptionResponseContent"}}},"description":"UnauthorizedException 401 response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceNotFoundExceptionResponseContent"}}},"description":"ResourceNotFoundException 404 response"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalServerExceptionResponseContent"}}},"description":"InternalServerException 500 response"}},"tags":["Billing Documents"]}},"/billing/invoices/pay":{"post":{"description":"Executes payment on a set of or all of an advertisers open invoices.\n\n**Requires one of these permissions**:\n[\"adv_billing_edit\"]","operationId":"PayInvoices","parameters":[{"$ref":"#/components/parameters/AdPaymentsClientHeader"},{"$ref":"#/components/parameters/AdPaymentsProfileHeader"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdPaymentsPayInvoicesInput"}}},"description":"This API executes payment on one or multiple open invoices.","required":true},"responses":{"207":{"content":{"application/vnd.invoices.v1+json":{"schema":{"$ref":"#/components/schemas/AdPaymentsPayInvoicesOutput"}}},"description":"Successful response of the operation."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdPaymentsError"}}},"description":"The operation failed due to invalid client input."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdPaymentsError"}}},"description":"The operation failed due to reaching the rate limit."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdPaymentsError"}}},"description":"Internal Server Error. Something went wrong on the server. Retry later and report an error if unresolved."}},"tags":["Pay Invoices"]}},"/billing/notifications":{"post":{"description":"Gets an array of all currently valid billing notifications associated for each advertising account.\n\n**Authorized resource type**:\nGlobal Ad Account ID, Profile ID\n\n**Parameter name**:\nAmazon-Ads-AccountId\n\n**Parameter in**:\nheader\n\n**Requires one of these permissions**:\n[\"advertiser_campaign_edit\",\"adv_billing_view\",\"adv_billing_edit\",\"MasterAccount_Viewer\",\"MasterAccount_Manager\",\"ManagerAccount_Dev\"]\n\n**Authorized resource type**:\nGlobal Manager Account ID, Profile ID\n\n**Parameter name**:\nAmazon-Advertising-API-Manager-Account\n\n**Parameter in**:\nheader\n\n**Requires one of these permissions**:\n[\"advertiser_campaign_edit\",\"adv_billing_view\",\"adv_billing_edit\",\"MasterAccount_Viewer\",\"MasterAccount_Manager\",\"ManagerAccount_Dev\"]","operationId":"bulkGetBillingNotifications","parameters":[{"$ref":"#/components/parameters/AdPaymentsAccountIdHeader"},{"$ref":"#/components/parameters/AdPaymentsClientHeader"},{"$ref":"#/components/parameters/AdPaymentsManagerAccountIdHeader"}],"requestBody":{"content":{"application/vnd.billingnotifications.v1+json":{"schema":{"$ref":"#/components/schemas/bulkGetBillingNotificationsRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/vnd.bulkgetbillingnotificationsresponse.v1+json":{"schema":{"$ref":"#/components/schemas/bulkGetBillingNotificationsResponse"}}},"description":"Successful Request"},"400":{"content":{"application/vnd.bulkgetbillingnotificationserrorresponse.v1+json":{"schema":{"$ref":"#/components/schemas/bulkGetBillingNotificationsErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/vnd.bulkgetbillingnotificationserrorresponse.v1+json":{"schema":{"$ref":"#/components/schemas/bulkGetBillingNotificationsErrorResponse"}}},"description":"Unauthorized - Request failed because user is not authenticated or is not allowed to invoke the operation."},"403":{"content":{"application/vnd.bulkgetbillingnotificationserrorresponse.v1+json":{"schema":{"$ref":"#/components/schemas/bulkGetBillingNotificationsErrorResponse"}}},"description":"Forbidden - Request failed because user does not have access to a specified resource,"},"404":{"content":{"application/vnd.bulkgetbillingnotificationserrorresponse.v1+json":{"schema":{"$ref":"#/components/schemas/bulkGetBillingNotificationsErrorResponse"}}},"description":"Not Found - Requested account was not found."},"429":{"content":{"application/vnd.bulkgetbillingnotificationserrorresponse.v1+json":{"schema":{"$ref":"#/components/schemas/bulkGetBillingNotificationsErrorResponse"}}},"description":"Too Many Requests - Request was rate-limited. Retry later."},"500":{"content":{"application/vnd.bulkgetbillingnotificationserrorresponse.v1+json":{"schema":{"$ref":"#/components/schemas/bulkGetBillingNotificationsErrorResponse"}}},"description":"Internal Server Error - Something went wrong on the server. Retry later and report an error if unresolved."}},"summary":"Get the billing notifications for a list advertising accounts.","tags":["Billing Notifications"]}},"/billing/paymentAgreements":{"post":{"description":"Creates or updates payment agreements.\n\n**Authorized resource type**:\nGlobal Ad Account ID, Profile ID\n\n**Parameter name**:\nAmazon-Ads-AccountId\n\n**Parameter in**:\nheader\n\n**Requires one of these permissions**:\n[\"adv_billing_edit\",\"MasterAccount_Manager\",\"ManagerAccount_Dev\"]\n\n**Authorized resource type**:\nGlobal Manager Account ID, Profile ID\n\n**Parameter name**:\nAmazon-Advertising-API-Manager-Account\n\n**Parameter in**:\nheader\n\n**Requires one of these permissions**:\n[\"adv_billing_edit\",\"MasterAccount_Manager\",\"ManagerAccount_Dev\"]","operationId":"CreatePaymentAgreements","parameters":[{"$ref":"#/components/parameters/AdPaymentsClientHeader"},{"$ref":"#/components/parameters/AdPaymentsAccountIdHeader"},{"$ref":"#/components/parameters/AdPaymentsProfileHeader"},{"$ref":"#/components/parameters/AdPaymentsManagerAccountIdHeader"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdPaymentsCreatePaymentAgreementsInput"}}},"description":"This API creates or updates payment agreements.","required":true},"responses":{"207":{"content":{"application/vnd.paymentagreements.v1+json":{"schema":{"$ref":"#/components/schemas/AdPaymentsCreatePaymentAgreementsOutput"}}},"description":"Successful response of the operation."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdPaymentsError"}}},"description":"The operation failed due to invalid client input."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdPaymentsError"}}},"description":"The operation failed due to reaching the rate limit."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdPaymentsError"}}},"description":"Internal Server Error. Something went wrong on the server. Retry later and report an error if unresolved."}},"tags":["Create Payment Agreement"]}},"/billing/paymentAgreements/list":{"post":{"description":"Gets current payment agreement for a customer.\n\n**Authorized resource type**:\nGlobal Ad Account ID, Profile ID\n\n**Parameter name**:\nAmazon-Ads-AccountId\n\n**Parameter in**:\nheader\n\n**Requires one of these permissions**:\n[\"adv_billing_view\",\"adv_billing_edit\",\"MasterAccount_Viewer\",\"MasterAccount_Manager\",\"ManagerAccount_Dev\"]\n\n**Authorized resource type**:\nGlobal Manager Account ID, Profile ID\n\n**Parameter name**:\nAmazon-Advertising-API-Manager-Account\n\n**Parameter in**:\nheader\n\n**Requires one of these permissions**:\n[\"adv_billing_view\",\"adv_billing_edit\",\"MasterAccount_Viewer\",\"MasterAccount_Manager\",\"ManagerAccount_Dev\"]","operationId":"GetPaymentAgreements","parameters":[{"$ref":"#/components/parameters/AdPaymentsAccountIdHeader"},{"$ref":"#/components/parameters/AdPaymentsClientHeader"},{"$ref":"#/components/parameters/AdPaymentsProfileHeader"},{"$ref":"#/components/parameters/AdPaymentsManagerAccountIdHeader"},{"$ref":"#/components/parameters/AdPaymentsNextTokenQueryParam"},{"description":"The type of payment agreement to query for.","in":"query","name":"agreementType","required":true,"schema":{"$ref":"#/components/schemas/AdPaymentsPaymentAgreementType"}}],"responses":{"200":{"content":{"application/vnd.paymentagreements.v1+json":{"schema":{"$ref":"#/components/schemas/AdPaymentsGetPaymentAgreementOutput"}}},"description":"Successful response of the operation."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdPaymentsError"}}},"description":"The operation failed due to invalid client input."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdPaymentsError"}}},"description":"The operation failed due to reaching the rate limit."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdPaymentsError"}}},"description":"Internal Server Error. Something went wrong on the server. Retry later and report an error if unresolved."}},"tags":["Get Payment Agreements"]}},"/billing/paymentMethods/list":{"post":{"description":"Retrieves eligible payment methods for a customer.\n\n**Authorized resource type**:\nGlobal Ad Account ID, Profile ID\n\n**Parameter name**:\nAmazon-Ads-AccountId\n\n**Parameter in**:\nheader\n\n**Requires one of these permissions**:\n[\"adv_billing_view\",\"adv_billing_edit\",\"MasterAccount_Viewer\",\"MasterAccount_Manager\",\"ManagerAccount_Dev\"]\n\n**Authorized resource type**:\nGlobal Manager Account ID, Profile ID\n\n**Parameter name**:\nAmazon-Advertising-API-Manager-Account\n\n**Parameter in**:\nheader\n\n**Requires one of these permissions**:\n[\"adv_billing_view\",\"adv_billing_edit\",\"MasterAccount_Viewer\",\"MasterAccount_Manager\",\"ManagerAccount_Dev\"]","operationId":"GetCustomerPaymentMethods","parameters":[{"$ref":"#/components/parameters/AdPaymentsAccountIdHeader"},{"$ref":"#/components/parameters/AdPaymentsClientHeader"},{"$ref":"#/components/parameters/AdPaymentsProfileHeader"},{"$ref":"#/components/parameters/AdPaymentsManagerAccountIdHeader"},{"$ref":"#/components/parameters/AdPaymentsNextTokenQueryParam"},{"description":"Criteria Types to that can be used to filter the payment methods in the GET Payment methods API.","in":"query","name":"criteriaType","required":true,"schema":{"$ref":"#/components/schemas/AdPaymentsPaymentAgreementType"}}],"responses":{"200":{"content":{"application/vnd.paymentmethods.v1+json":{"schema":{"$ref":"#/components/schemas/AdPaymentsGetCustomerPaymentMethodsOutput"}}},"description":"Successful response of the operation."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdPaymentsError"}}},"description":"The operation failed due to invalid client input."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdPaymentsError"}}},"description":"The operation failed due to reaching the rate limit."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdPaymentsError"}}},"description":"Internal Server Error. Something went wrong on the server. Retry later and report an error if unresolved."}},"tags":["Get Payment Methods"]}},"/billing/paymentProfiles":{"post":{"description":"Creates or updates payment profiles.\n\n**Authorized resource type**:\nGlobal Ad Account ID, Profile ID\n\n**Parameter name**:\nAmazon-Ads-AccountId\n\n**Parameter in**:\nheader\n\n**Requires one of these permissions**:\n[\"adv_billing_edit\",\"MasterAccount_Manager\",\"ManagerAccount_Dev\"]\n\n**Authorized resource type**:\nGlobal Manager Account ID, Profile ID\n\n**Parameter name**:\nAmazon-Advertising-API-Manager-Account\n\n**Parameter in**:\nheader\n\n**Requires one of these permissions**:\n[\"adv_billing_edit\",\"MasterAccount_Manager\",\"ManagerAccount_Dev\"]","operationId":"CreatePaymentProfiles","parameters":[{"description":"The identifier of a profile associated with the advertiser account.","in":"header","name":"Amazon-Ads-AccountId","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/AdPaymentsClientHeader"},{"$ref":"#/components/parameters/AdPaymentsManagerAccountIdHeader"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdPaymentsCreatePaymentProfileInput"}}},"description":"This API creates or updates payment profiles.","required":true},"responses":{"207":{"content":{"application/vnd.paymentprofiles.v1+json":{"schema":{"$ref":"#/components/schemas/AdPaymentsCreatePaymentProfilesOutput"}}},"description":"Successful response of the operation."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdPaymentsError"}}},"description":"The operation failed due to invalid client input."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdPaymentsError"}}},"description":"The operation failed due to reaching the rate limit."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdPaymentsError"}}},"description":"Internal Server Error. Something went wrong on the server. Retry later and report an error if unresolved."}},"tags":["Create Payment Profiles"]}},"/billing/statuses":{"post":{"description":"Gets the current billing status associated for each advertising account.\n\n**Requires one of these permissions**:\n[\"advertiser_campaign_edit\",\"adv_billing_view\",\"adv_billing_edit\"]","operationId":"bulkGetBillingStatus","requestBody":{"content":{"application/vnd.bulkgetbillingstatusrequestbody.v1+json":{"schema":{"$ref":"#/components/schemas/bulkGetBillingStatusesRequestBody"}}},"required":true},"responses":{"200":{"content":{"application/vnd.bulkgetbillingstatusresponse.v1+json":{"schema":{"$ref":"#/components/schemas/bulkGetBillingStatusResponse"}}},"description":"Successful"},"400":{"content":{"application/vnd.bulkgetbillingstatuserrorresponse.v1+json":{"schema":{"$ref":"#/components/schemas/bulkGetBillingStatusErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/vnd.bulkgetbillingstatuserrorresponse.v1+json":{"schema":{"$ref":"#/components/schemas/bulkGetBillingStatusErrorResponse"}}},"description":"Unauthorized - Request failed because user is not authenticated or is not allowed to invoke the operation."},"403":{"content":{"application/vnd.bulkgetbillingstatuserrorresponse.v1+json":{"schema":{"$ref":"#/components/schemas/bulkGetBillingStatusErrorResponse"}}},"description":"Forbidden - Request failed because user does not have access to a specified resource,"},"404":{"content":{"application/vnd.bulkgetbillingstatuserrorresponse.v1+json":{"schema":{"$ref":"#/components/schemas/bulkGetBillingStatusErrorResponse"}}},"description":"Not Found - Requested account was not found."},"429":{"content":{"application/vnd.bulkgetbillingstatuserrorresponse.v1+json":{"schema":{"$ref":"#/components/schemas/bulkGetBillingStatusErrorResponse"}}},"description":"Too Many Requests - Request was rate-limited. Retry later."},"500":{"content":{"application/vnd.bulkgetbillingstatuserrorresponse.v1+json":{"schema":{"$ref":"#/components/schemas/bulkGetBillingStatusErrorResponse"}}},"description":"Internal Server Error - Something went wrong on the server. Retry later and report an error if unresolved."}},"summary":"Get the billing status for a list of advertising accounts.","tags":["Billing Status"]}},"/billingProfileAgreementContents/{billingProfileAgreementContentId}":{"get":{"description":"User needs to provide consent to certain agreements before creating a billing profile. This API provides a way for users to go through the agreement content.\n\n**Authorized resource type**:\nGlobal Ad Account ID, Profile ID\n\n**Parameter name**:\nAmazon-Ads-AccountId\n\n**Parameter in**:\nheader\n\n**Requires one of these permissions**:\n[\"adv_billing_view\",\"adv_billing_edit\",\"MasterAccount_Viewer\",\"MasterAccount_Manager\",\"ManagerAccount_Dev\"]\n\n**Authorized resource type**:\nGlobal Manager Account ID, Profile ID\n\n**Parameter name**:\nAmazon-Advertising-API-Manager-Account\n\n**Parameter in**:\nheader\n\n**Requires one of these permissions**:\n[\"adv_billing_view\",\"adv_billing_edit\",\"MasterAccount_Viewer\",\"MasterAccount_Manager\",\"ManagerAccount_Dev\"]","operationId":"GetBillingProfileAgreementContent","parameters":[{"description":"The identifier of a client associated with a \"Login with Amazon\" account.","in":"header","name":"Amazon-Advertising-API-ClientId","required":true,"schema":{"type":"string"}},{"description":"The identifier of an account. Account can be a global advertising account.","in":"header","name":"Amazon-Ads-AccountId","required":false,"schema":{"type":"string"}},{"description":"The identifier of a manager account.","in":"header","name":"Amazon-Advertising-API-Manager-Account","required":false,"schema":{"type":"string"}},{"description":"agreementId for which the content needs to be fetched. This is same as the `documentName` in create/update billing profiles request","in":"path","name":"billingProfileAgreementContentId","required":true,"schema":{"type":"string"}},{"description":"This selection controls the language of preference (or `locale`) and the returned values of agreement content to match that language. Preferred locale can be chosen among the list of valid language codes. Check the table below for supported language code. <br/><br/><table border=1><caption> **Supported Locales Table** </caption><tr> <th>Locale code</th> <th>Language</th></tr><tr> <td>en_US</td> <td>English</td></tr><tr> <td>ja_JP</td> <td>Japanese</td></tr><tr> <td>ar_SA</td> <td>Arabic</td></tr><tr> <td>de_DE</td> <td>German</td></tr><tr> <td>fr_FR</td> <td>French</td></tr><tr> <td>it_IT</td> <td>Italian</td></tr><tr> <td>es_MX</td> <td>Spanish</td></tr><tr> <td>nl_NL</td> <td>Dutch</td></tr><tr> <td>sv_SE</td> <td>Swedish</td></tr><tr> <td>pl_PL</td> <td>Polish</td></tr><tr> <td>tr_TR</td> <td>Turkish</td></tr> <tr> <td>pt_BR</td> <td>Portuguese</td></tr> </table>","in":"query","name":"languageOfPreference","required":false,"schema":{"default":"en_US","type":"string"}}],"responses":{"200":{"content":{"application/vnd.billingProfileAgreement.v1+json":{"schema":{"$ref":"#/components/schemas/BillingProfileAgreementContentResponse"}}},"description":"Get opertation was successful. `content` contains the HTML content of the agreement requested"},"401":{"content":{"application/vnd.billingProfileAgreement.v1+json":{"schema":{"$ref":"#/components/schemas/BillingProfileErrorResponse"}}},"description":"Billing profile agreement couldn't be fetched because of unauthenticated access."},"403":{"content":{"application/vnd.billingProfileAgreement.v1+json":{"schema":{"$ref":"#/components/schemas/BillingProfileErrorResponse"}}},"description":"Billing profile agreement couldn't be fetched because of unauthorized access."},"404":{"content":{"application/vnd.billingProfileAgreement.v1+json":{"schema":{"$ref":"#/components/schemas/BillingProfileErrorResponse"}}},"description":"Billing profile agreement couldn't be fetched because content doesn't exist."},"500":{"content":{"application/vnd.billingProfileAgreement.v1+json":{"schema":{"$ref":"#/components/schemas/BillingProfileErrorResponse"}}},"description":"Billing profile agreement couldn't be fetched because of internal error."}},"summary":"API to fetch agreement contents related to billing profiles.","tags":["Billing Profiles"]}},"/billingProfileUsages":{"post":{"description":"API to link one or more countries with a billing profile. The linked BillingProfile's billing informationwill be used for invoicing, taxes and other billing workflows. A single billing profile can be linked to multiple countries.\n\n**Authorized resource type**:\nGlobal Ad Account ID, Profile ID\n\n**Parameter name**:\nAmazon-Ads-AccountId\n\n**Parameter in**:\nheader\n\n**Requires one of these permissions**:\n[\"adv_billing_view\",\"adv_billing_edit\",\"MasterAccount_Manager\",\"ManagerAccount_Dev\"]\n\n**Authorized resource type**:\nGlobal Manager Account ID, Profile ID\n\n**Parameter name**:\nAmazon-Advertising-API-Manager-Account\n\n**Parameter in**:\nheader\n\n**Requires one of these permissions**:\n[\"adv_billing_view\",\"adv_billing_edit\",\"MasterAccount_Manager\",\"ManagerAccount_Dev\"]","operationId":"ApplyBillingProfile","parameters":[{"description":"The identifier of a client associated with a \"Login with Amazon\" account.","in":"header","name":"Amazon-Advertising-API-ClientId","required":true,"schema":{"type":"string"}},{"description":"The identifier of an account. Account can be a global advertising account.","in":"header","name":"Amazon-Ads-AccountId","required":false,"schema":{"type":"string"}},{"description":"The identifier of a manager account.","in":"header","name":"Amazon-Advertising-API-Manager-Account","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/vnd.billingProfileUsage.v1+json":{"schema":{"$ref":"#/components/schemas/ApplyBillingProfileRequest"}}},"description":"The request body accepts a list of billing profile identifiers and advertisers for association.","required":true},"responses":{"207":{"content":{"application/vnd.billingProfileUsage.v1+json":{"schema":{"$ref":"#/components/schemas/ApplyBillingProfileResponse"}}},"description":"Some Billing profile(s) may have been applied. Response may contain partial success. More details on the successful/failed applications will be present in the response body"},"400":{"content":{"application/vnd.billingProfileUsage.v1+json":{"schema":{"$ref":"#/components/schemas/BillingProfileErrorResponse"}}},"description":"Billing profile(s) couldn't be applied because of invalid request payload."},"401":{"content":{"application/vnd.billingProfileUsage.v1+json":{"schema":{"$ref":"#/components/schemas/BillingProfileErrorResponse"}}},"description":"Billing profile(s) couldn't be applied because of unauthenticated access."},"500":{"content":{"application/vnd.billingProfileUsage.v1+json":{"schema":{"$ref":"#/components/schemas/BillingProfileErrorResponse"}}},"description":"Billing profile(s) couldn't be applied because of internal error."}},"summary":"API to link one or more countries with a billing profile. This association is known as 'applying' a billing profile.","tags":["Billing Profiles"]}},"/billingProfileUsages/list":{"post":{"description":"Lists the billing profiles linked to each country of global ads account. You can further narrow down the search by providing the countries you want the billing profiles for.\n\n**Authorized resource type**:\nGlobal Ad Account ID, Profile ID\n\n**Parameter name**:\nAmazon-Ads-AccountId\n\n**Parameter in**:\nheader\n\n**Requires one of these permissions**:\n[\"adv_billing_view\",\"MasterAccount_Viewer\",\"MasterAccount_Manager\",\"ManagerAccount_Dev\"]\n\n**Authorized resource type**:\nGlobal Manager Account ID, Profile ID\n\n**Parameter name**:\nAmazon-Advertising-API-Manager-Account\n\n**Parameter in**:\nheader\n\n**Requires one of these permissions**:\n[\"adv_billing_view\",\"MasterAccount_Viewer\",\"MasterAccount_Manager\",\"ManagerAccount_Dev\"]","operationId":"GetBillingProfileUsages","parameters":[{"description":"The identifier of a client associated with a \"Login with Amazon\" account.","in":"header","name":"Amazon-Advertising-API-ClientId","required":true,"schema":{"type":"string"}},{"description":"The identifier of an account. Account can be a global advertising account.","in":"header","name":"Amazon-Ads-AccountId","required":false,"schema":{"type":"string"}},{"description":"The identifier of a manager account.","in":"header","name":"Amazon-Advertising-API-Manager-Account","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/vnd.billingProfileUsage.v1+json":{"schema":{"$ref":"#/components/schemas/GetBillingProfileUsageRequest"}}},"description":"The request body to fetch billing profiles linked to each country of global ads account.","required":true},"responses":{"200":{"content":{"application/vnd.billingProfileUsage.v1+json":{"schema":{"$ref":"#/components/schemas/GetBillingProfileUsageResponse"}}},"description":"Linked billing profile(s) are successfully fetched."},"400":{"content":{"application/vnd.billingProfileUsage.v1+json":{"schema":{"$ref":"#/components/schemas/BillingProfileErrorResponse"}}},"description":"Operation failed because of invalid request payload."},"401":{"content":{"application/vnd.billingProfileUsage.v1+json":{"schema":{"$ref":"#/components/schemas/BillingProfileErrorResponse"}}},"description":"Operation failed because of unauthenticated access"},"500":{"content":{"application/vnd.billingProfileUsage.v1+json":{"schema":{"$ref":"#/components/schemas/BillingProfileErrorResponse"}}},"description":"Operation failed because of internal error"}},"summary":"Lists the billing profiles linked to each country of global ads account.","tags":["Billing Profiles"]}},"/billingProfiles":{"post":{"description":"Creates one or more billing profiles. A Billing Profile contains billing information (address, taxes, agreements etc..) that will be used for invoicing and other billing workflows. Currently, Billing Profiles can only be created for a Global Sponsored Ads vendor account. Please note that you need to link (`POST /billingProfileUsages`) a billingProfile to a country for that billingInformation to be used for that country.\n\n**Authorized resource type**:\nGlobal Ad Account ID, Profile ID\n\n**Parameter name**:\nAmazon-Ads-AccountId\n\n**Parameter in**:\nheader\n\n**Requires one of these permissions**:\n[\"adv_billing_view\",\"adv_billing_edit\",\"MasterAccount_Manager\",\"ManagerAccount_Dev\"]\n\n**Authorized resource type**:\nGlobal Manager Account ID, Profile ID\n\n**Parameter name**:\nAmazon-Advertising-API-Manager-Account\n\n**Parameter in**:\nheader\n\n**Requires one of these permissions**:\n[\"adv_billing_view\",\"adv_billing_edit\",\"MasterAccount_Manager\",\"ManagerAccount_Dev\"]","operationId":"CreateBillingProfiles","parameters":[{"description":"The identifier of a client associated with a \"Login with Amazon\" account.","in":"header","name":"Amazon-Advertising-API-ClientId","required":true,"schema":{"type":"string"}},{"description":"The identifier of an account. Account can be a global advertising account.","in":"header","name":"Amazon-Ads-AccountId","required":false,"schema":{"type":"string"}},{"description":"The identifier of a manager account.","in":"header","name":"Amazon-Advertising-API-Manager-Account","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBillingProfilesRequest"}}},"description":"The request body accepts a list of billing profiles to be created in batch.","required":true},"responses":{"207":{"content":{"application/vnd.billingProfile.v1+json":{"schema":{"$ref":"#/components/schemas/CreateOrUpdateBillingProfilesResponse"}}},"description":"Updates one or more billing profiles under a global or manager account which can then be applied in Sponsored Products/Brands/Display segments. Please note that `isBillTo` and `billingParty` are immutable attributes and cannot be updated -- in this case, user can always create a new billing profile with same details but with different `isBillTo` and `billingParty` attribute values."},"400":{"content":{"application/vnd.billingProfile.v1+json":{"schema":{"$ref":"#/components/schemas/BillingProfileErrorResponse"}}},"description":"Billing profile(s) couldn't be created because of invalid request payload."},"401":{"content":{"application/vnd.billingProfile.v1+json":{"schema":{"$ref":"#/components/schemas/BillingProfileErrorResponse"}}},"description":"Billing profile(s) couldn't be created because of unauthenticated access."},"500":{"content":{"application/vnd.billingProfile.v1+json":{"schema":{"$ref":"#/components/schemas/BillingProfileErrorResponse"}}},"description":"Billing profile(s) couldn't be created because of internal error."}},"summary":"API to create one or more billing profile(s).","tags":["Billing Profiles"]},"put":{"description":"Updates one or more billing profiles under a global account Please note that `isBillTo` and `type` are immutable attributes and cannot be updated -- in this case, user can always create a new billing profile with same details but with different `isBillTo` and `type` attribute values.\n\n**Authorized resource type**:\nGlobal Ad Account ID, Profile ID\n\n**Parameter name**:\nAmazon-Ads-AccountId\n\n**Parameter in**:\nheader\n\n**Requires one of these permissions**:\n[\"adv_billing_view\",\"adv_billing_edit\",\"MasterAccount_Manager\",\"ManagerAccount_Dev\"]\n\n**Authorized resource type**:\nGlobal Manager Account ID, Profile ID\n\n**Parameter name**:\nAmazon-Advertising-API-Manager-Account\n\n**Parameter in**:\nheader\n\n**Requires one of these permissions**:\n[\"adv_billing_view\",\"adv_billing_edit\",\"MasterAccount_Manager\",\"ManagerAccount_Dev\"]","operationId":"UpdateBillingProfiles","parameters":[{"description":"The identifier of a client associated with a \"Login with Amazon\" account.","in":"header","name":"Amazon-Advertising-API-ClientId","required":true,"schema":{"type":"string"}},{"description":"The identifier of an account. Account can be a global advertising account.","in":"header","name":"Amazon-Ads-AccountId","required":false,"schema":{"type":"string"}},{"description":"The identifier of a manager account.","in":"header","name":"Amazon-Advertising-API-Manager-Account","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateBillingProfilesRequest"}}},"description":"The request body accepts a list of billing profiles to be updated in batch.","required":true},"responses":{"207":{"content":{"application/vnd.billingProfile.v1+json":{"schema":{"$ref":"#/components/schemas/CreateOrUpdateBillingProfilesResponse"}}},"description":"Billing profile(s) is(are) updated. Response may contain partial success."},"400":{"content":{"application/vnd.billingProfile.v1+json":{"schema":{"$ref":"#/components/schemas/BillingProfileErrorResponse"}}},"description":"Billing profile(s) couldn't be updated because of invalid request payload."},"401":{"content":{"application/vnd.billingProfile.v1+json":{"schema":{"$ref":"#/components/schemas/BillingProfileErrorResponse"}}},"description":"Billing profile(s) couldn't be updated because of unauthenticated access."},"500":{"content":{"application/vnd.billingProfile.v1+json":{"schema":{"$ref":"#/components/schemas/BillingProfileErrorResponse"}}},"description":"Billing profile(s) couldn't be updated because of internal error."}},"summary":"API to update one or more billing profile(s).","tags":["Billing Profiles"]}},"/billingProfiles/list":{"post":{"description":"Fetches billing profiles present under the global account. You can limit the search results by providing filters like `defaultBillingProfileFilter` and `billingProfileIdFilter` in which case only results matching the filters will be returned. This is a Paginated API request and returns a paginationToken (`nextToken`) if more that `50` results match. You can customize the pageSize to be less than `50` by providing `maxResults` key in request.\n\n**Authorized resource type**:\nGlobal Ad Account ID, Profile ID\n\n**Parameter name**:\nAmazon-Ads-AccountId\n\n**Parameter in**:\nheader\n\n**Requires one of these permissions**:\n[\"adv_billing_view\",\"MasterAccount_Viewer\",\"MasterAccount_Manager\",\"ManagerAccount_Dev\"]\n\n**Authorized resource type**:\nGlobal Manager Account ID, Profile ID\n\n**Parameter name**:\nAmazon-Advertising-API-Manager-Account\n\n**Parameter in**:\nheader\n\n**Requires one of these permissions**:\n[\"adv_billing_view\",\"MasterAccount_Viewer\",\"MasterAccount_Manager\",\"ManagerAccount_Dev\"]","operationId":"GetBillingProfiles","parameters":[{"description":"The identifier of a client associated with a \"Login with Amazon\" account.","in":"header","name":"Amazon-Advertising-API-ClientId","required":true,"schema":{"type":"string"}},{"description":"The identifier of an account. Account can be a global advertising account.","in":"header","name":"Amazon-Ads-AccountId","required":false,"schema":{"type":"string"}},{"description":"The identifier of a manager account.","in":"header","name":"Amazon-Advertising-API-Manager-Account","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/vnd.billingProfile.v1+json":{"schema":{"$ref":"#/components/schemas/GetBillingProfilesRequest"}}},"description":"The request body to fetch one or more billing profile(s).","required":true},"responses":{"200":{"content":{"application/vnd.billingProfile.v1+json":{"schema":{"$ref":"#/components/schemas/GetBillingProfilesResponse"}}},"description":"Billing profile(s) is(are) fetched."},"400":{"content":{"application/vnd.billingProfile.v1+json":{"schema":{"$ref":"#/components/schemas/BillingProfileErrorResponse"}}},"description":"Billing profile(s) couldn't be fetched because of invalid request payload."},"401":{"content":{"application/vnd.billingProfile.v1+json":{"schema":{"$ref":"#/components/schemas/BillingProfileErrorResponse"}}},"description":"Billing profile(s) couldn't be fetched because of unauthenticated access."},"500":{"content":{"application/vnd.billingProfile.v1+json":{"schema":{"$ref":"#/components/schemas/BillingProfileErrorResponse"}}},"description":"Billing profile(s) couldn't be fetched because of internal error."}},"summary":"Fetches billing profiles present under the global account. ","tags":["Billing Profiles"]}},"/billingStatements":{"post":{"description":"Request to create billing statement for advertiser advertising in Sponsored Products/Brands/Display segment.\n\n**Authorized resource type**:\nGlobal Ad Account ID, Profile ID\n\n**Parameter name**:\nAmazon-Ads-AccountId\n\n**Parameter in**:\nheader\n\n**Requires one of these permissions**:\n[\"nemo_transactions_view\",\"nemo_transactions_edit\",\"ManagerAccount_Dev\",\"MasterAccount_Viewer\",\"MasterAccount_Manager\"]\n\n**Authorized resource type**:\nGlobal Manager Account ID, Profile ID\n\n**Parameter name**:\nAmazon-Advertising-API-Manager-Account\n\n**Parameter in**:\nheader\n\n**Requires one of these permissions**:\n[\"nemo_transactions_view\",\"nemo_transactions_edit\",\"ManagerAccount_Dev\",\"MasterAccount_Viewer\",\"MasterAccount_Manager\"]\n\n**Authorized resource type**:\nDSP Rodeo Entity ID, DSP Advertiser Account ID\n\n**Parameter name**:\nAmazon-Ads-AccountId\n\n**Parameter in**:\nheader\n\n**Requires one of these permissions**:\n[]","operationId":"CreateBillingStatement","parameters":[{"description":"The identifier of a client associated with a \"Login with Amazon\" account.","in":"header","name":"Amazon-Advertising-API-ClientId","required":true,"schema":{"type":"string"}},{"description":"The identifier of a profile associated with the advertiser account. Use `GET` method on Profiles resource to list profiles associated with the access token passed in the HTTP Authorization header and choose profile id `profileId` from the response to pass it as input.","in":"header","name":"Amazon-Advertising-API-Scope","required":false,"schema":{"type":"string"}},{"description":"The identifier of a profile associated with the advertiser account. Used for authentication of Global Account.","in":"header","name":"Amazon-Ads-AccountId","required":false,"schema":{"type":"string"}},{"description":"The identifier of a manager account.","in":"header","name":"Amazon-Advertising-API-Manager-Account","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/vnd.createbillingstatementsrequest.v1+json":{"schema":{"$ref":"#/components/schemas/CreateBillingStatementRequest"}}},"description":"The request body accepts filters required for generation of the billing statement report.","required":true},"responses":{"202":{"content":{"application/vnd.createbillingstatementsrequest.v1+json":{"example":{"billingStatementRequestId":"dummy_billing_statement_request_id","details":"Billing statement creation request accepted"},"schema":{"$ref":"#/components/schemas/CreateBillingStatementResponse"}}},"description":"Billing statement creation request accepted and request identifier is generated."},"400":{"content":{"application/vnd.createbillingstatementsrequest.v1+json":{"example":{"billingStatementRequestId":"billing_statement_request_id","code":"INVALID_ARGUMENT","details":"startDate must be in yyyyMMdd format"},"schema":{"$ref":"#/components/schemas/BillingStatementErrorResponse"}}},"description":"Bad Request, caused due to invalid argument passed in the request."},"401":{"content":{"application/vnd.createbillingstatementsrequest.v1+json":{"schema":{"$ref":"#/components/schemas/BillingStatementErrorResponse"}}},"description":"**Unauthorized** - The request failed because the user is not authenticated or is not allowed to invoke the operation."},"403":{"content":{"application/vnd.createbillingstatementsrequest.v1+json":{"schema":{"$ref":"#/components/schemas/BillingStatementErrorResponse"}}},"description":"**Forbidden** - The request failed because the caller is not authorized to the requested account."},"404":{"content":{"application/vnd.createbillingstatementsrequest.v1+json":{"example":{"billingStatementRequestId":"billing_statement_request_id","code":"ACCOUNT_NOT_FOUND","details":"Valid account does not exist for the given account Id"},"schema":{"$ref":"#/components/schemas/BillingStatementErrorResponse"}}},"description":"Account doesn't exists for which billing statement is requested."},"500":{"content":{"application/vnd.createbillingstatementsrequest.v1+json":{"example":{"billingStatementRequestId":"billing_statement_request_id","code":"INTERNAL_SERVER_ERROR","details":"Internal failure. Please retry after sometime"},"schema":{"$ref":"#/components/schemas/BillingStatementErrorResponse"}}},"description":"Internal server error, caused due to some internal error."}},"summary":"API to request billing statement generation for an Advertising account.","tags":["Billing Statements"]}},"/billingStatements/{billingStatementRequestId}":{"get":{"description":"API to fetch the latest status of Billing Statements creation request and billing statement download link if available.\n\n**Authorized resource type**:\nGlobal Ad Account ID, Profile ID\n\n**Parameter name**:\nAmazon-Ads-AccountId\n\n**Parameter in**:\nheader\n\n**Requires one of these permissions**:\n[\"nemo_transactions_view\",\"nemo_transactions_edit\",\"ManagerAccount_Dev\",\"MasterAccount_Viewer\",\"MasterAccount_Manager\"]\n\n**Authorized resource type**:\nGlobal Manager Account ID, Profile ID\n\n**Parameter name**:\nAmazon-Advertising-API-Manager-Account\n\n**Parameter in**:\nheader\n\n**Requires one of these permissions**:\n[\"nemo_transactions_view\",\"nemo_transactions_edit\",\"ManagerAccount_Dev\",\"MasterAccount_Viewer\",\"MasterAccount_Manager\"]\n\n**Authorized resource type**:\nDSP Rodeo Entity ID, DSP Advertiser Account ID\n\n**Parameter name**:\nAmazon-Ads-AccountId\n\n**Parameter in**:\nheader\n\n**Requires one of these permissions**:\n[]","operationId":"GetBillingStatement","parameters":[{"description":"The identifier of a client associated with a \"Login with Amazon\" account.","in":"header","name":"Amazon-Advertising-API-ClientId","required":true,"schema":{"type":"string"}},{"description":"The identifier of a profile associated with the advertiser account. Use `GET` method on Profiles resource to list profiles associated with the access token passed in the HTTP Authorization header and choose profile id `profileId` from the response to pass it as input.","in":"header","name":"Amazon-Advertising-API-Scope","required":false,"schema":{"type":"string"}},{"description":"The identifier of a profile associated with the advertiser account.","in":"header","name":"Amazon-Ads-AccountId","required":false,"schema":{"type":"string"}},{"description":"Billing Statement Request Id.","in":"path","name":"billingStatementRequestId","required":true,"schema":{"type":"string"}},{"description":"The identifier of a manager account.","in":"header","name":"Amazon-Advertising-API-Manager-Account","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/vnd.createbillingstatementsrequest.v1+json":{"example":{"details":"Billing Statement request generated successfully.","reportStatus":"SUCCESS","s3DownloadLink":"dummy_s3_preSigned_url"},"schema":{"$ref":"#/components/schemas/GetBillingStatementResponse"}}},"description":"Successful Operation."},"401":{"content":{"application/vnd.createbillingstatementsrequest.v1+json":{"schema":{"$ref":"#/components/schemas/BillingStatementErrorResponse"}}},"description":"**Unauthorized** - The request failed because the user is not authenticated or is not allowed to invoke the operation."},"403":{"content":{"application/vnd.createbillingstatementsrequest.v1+json":{"schema":{"$ref":"#/components/schemas/BillingStatementErrorResponse"}}},"description":"**Forbidden** - The request failed because the caller is not authorized to the requested account."},"404":{"content":{"application/vnd.createbillingstatementsrequest.v1+json":{"example":{"billingStatementRequestId":"billing_statement_request_id","code":"NOT_FOUND","details":"No billing statement request found with given billingStatementRequestId"},"schema":{"$ref":"#/components/schemas/BillingStatementErrorResponse"}}},"description":"Billing Statement not found for the given billingStatementRequestId."}},"summary":"API to fetch the latest status of Billing Statements creation request and billing statement download link if available.","tags":["Billing Statements"]}},"/invoiceSummaries/list":{"post":{"description":"Lists the billing invoice summary(s) in a global ads account. You can further narrow down the search by providing filter(s) over country, status, paymentMethod with 'exact' and 'broad' match, search over invoice number & ro number and aggregation query(s) over the billing invoice summary(s)\n\n**Authorized resource type**:\nGlobal Ad Account ID, Profile ID\n\n**Parameter name**:\nAmazon-Ads-AccountId\n\n**Parameter in**:\nheader\n\n**Requires one of these permissions**:\n[\"nemo_transactions_edit\",\"nemo_transactions_view\",\"ManagerAccount_Dev\",\"MasterAccount_Viewer\",\"MasterAccount_Manager\"]\n\n**Authorized resource type**:\nGlobal Manager Account ID\n\n**Parameter name**:\nAmazon-Advertising-API-Manager-Account\n\n**Parameter in**:\nheader\n\n**Requires one of these permissions**:\n[\"nemo_transactions_edit\",\"nemo_transactions_view\",\"ManagerAccount_Dev\",\"MasterAccount_Viewer\",\"MasterAccount_Manager\"]\n\n**Authorized resource type**:\nDSP Rodeo Entity ID, DSP Advertiser Account ID\n\n**Parameter name**:\nAmazon-Ads-AccountId\n\n**Parameter in**:\nheader\n\n**Requires one of these permissions**:\n[]","operationId":"GetBillingInvoiceSummaries","parameters":[{"description":"The identifier of a client associated with a \"Login with Amazon\" account.","in":"header","name":"Amazon-Advertising-API-ClientId","required":true,"schema":{"type":"string"}},{"description":"The identifier of an account. Account can be a global advertising account.","in":"header","name":"Amazon-Ads-AccountId","required":false,"schema":{"type":"string"}},{"description":"The identifier of a manager account.","in":"header","name":"Amazon-Advertising-API-Manager-Account","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/vnd.billingInvoiceSummary.v1+json":{"schema":{"$ref":"#/components/schemas/BillingInvoiceSummariesRequest"}}},"description":"Payload with filter, sort and aggregate key(s) to fetch list of billing invoice summary(s).","required":true},"responses":{"200":{"content":{"application/vnd.billingInvoiceSummary.v1+json":{"schema":{"$ref":"#/components/schemas/BillingInvoiceSummariesResponse"}}},"description":"Contains an object encapsulating either the aggregation result(s) or sorted & filtered billing invoice summary(s)."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingProfileErrorResponse"}}},"description":"Operation failed because of invalid request payload."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingProfileErrorResponse"}}},"description":"Operation failed because of unauthenticated access"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingProfileErrorResponse"}}},"description":"Operation failed because of internal error"}},"summary":"Lists the billing invoice summary(s) in a global ads account as per the search and aggregation parameters passed in the request","tags":["Billing Invoice Summary(s)"]}},"/invoices":{"get":{"description":"\n\n**Requires one of these permissions**:\n[\"nemo_transactions_view\",\"nemo_transactions_edit\"]","operationId":"getAdvertiserInvoices","parameters":[{"description":"* `ISSUED`: An invoice is issued when its charges are finalized and tax is computed on the total amount. \n* `PAID_IN_PART`: When a partial payment is received, the invoice status will change to paid in part.\n* `PAID_IN_PART`: One full payment has been received, the invoice will be paid in full.\n* `WRITTEN_OFF`: If an invoice is written off because of an error, the status will be updated to written off.\n","explode":false,"in":"query","name":"invoiceStatuses","schema":{"items":{"enum":["ISSUED","PAID_IN_FULL","PAID_IN_PART","WRITTEN_OFF"],"type":"string"},"type":"array"},"style":"form"},{"description":"The starting date (inclusive) of the date range for filtering invoices. Please provide the date in ISO-8601 format, representing a UTC date with only the date portion (no time).","in":"query","name":"startDate","schema":{}},{"description":"The ending date (inclusive) of the date range for filtering invoices. Please provide the date in ISO-8601 format, representing a UTC date with only the date portion (no time).","in":"query","name":"endDate","schema":{}},{"description":"Number of records to include in the paged response. Defaults to 100. Cannot be combined with the cursor parameter.","in":"query","name":"count","schema":{"maximum":100,"minimum":0,"type":"integer"}},{"description":"A cursor representing how far into a result set this query should begin. In the absence of a cursor the request will default to start index of 0 and page size of 100.","in":"query","name":"cursor","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/vnd.invoices.v1.1+json":{"schema":{"properties":{"invoiceSummaries":{"items":{"$ref":"#/components/schemas/invoiceSummary"},"type":"array"},"nextCursor":{"description":"This will be null when at the end of your result set. This will be present even if the original query had a startIndex and count","type":"string"},"previousCursor":{"description":"Optional parameter that links to the previous data set if relevant","type":"string"}},"type":"object"}}},"description":"successful operation"},"400":{"content":{},"description":"Bad Request"},"401":{"content":{},"description":"Unauthorized - Request failed because user is not authenticated or is not allowed to invoke the operation."},"403":{"content":{},"description":"Forbidden - Request failed because user does not have access to a specified resource,"},"404":{"content":{},"description":"Not Found - Requested account was not found."},"429":{"content":{},"description":"Too Many Requests - Request was rate-limited. Retry later."},"500":{"content":{},"description":"Internal Server Error - Something went wrong on the server. Retry later and report an error if unresolved."}},"summary":"Get invoices for advertiser","tags":["invoice"]}},"/invoices/{invoiceId}":{"get":{"description":"\n\n**Requires one of these permissions**:\n[\"nemo_transactions_view\",\"nemo_transactions_edit\"]","operationId":"getInvoice","parameters":[{"description":"ID of invoice to fetch","in":"path","name":"invoiceId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/vnd.invoice.v1.1+json":{"schema":{"$ref":"#/components/schemas/invoice"}}},"description":"Successful Operation"},"400":{"content":{},"description":"Bad Request"},"401":{"content":{},"description":"Unauthorized - Request failed because user is not authenticated or is not allowed to invoke the operation."},"403":{"content":{},"description":"Forbidden - Request failed because user does not have access to a specified resource,"},"404":{"content":{},"description":"Not Found - Requested invoice was not found."},"429":{"content":{},"description":"Too Many Requests - Request was rate-limited. Retry later."},"500":{"content":{},"description":"Internal Server Error - Something went wrong on the server. Retry later and report an error if unresolved."}},"summary":"Get invoice data by invoice ID","tags":["invoice"]}}}}