All pages
Powered by GitBook
1 of 1

Loading...

Create credit memo

post

Bulk async operation. Requires MPT-Upsert and MPT-Async headers. Returns 202 Accepted with MPT-Task-Id header for tracking the async operation.

Responses
201

Created

application/json

Represents a credit memo in the billing system.

atstring · date-time · nullableOptional
idstringOptional
namestringOptional
iconstring · nullableOptional
revisioninteger · int32Optional
atstring · date-time · nullableOptional
idstringOptional
namestringOptional
iconstring · nullableOptional
revisioninteger · int32Optional
atstring · date-time · nullableOptional
idstringOptional
namestringOptional
iconstring · nullableOptional
revisioninteger · int32Optional
omittedstring[]Optional
revisioninteger · int32Optional
idstringOptional

The unique identifier of the credit memo.

countryCodestringOptional

The country code.

Example: IE
documentNostringOptional

The document number assigned by the ERP system.

Example: DOC-67890
postingDatestring · date-time · nullableOptional

The date when the invoice was posted.

Example: 2025-05-01T10:00:00+00:00
documentDatestring · date-time · nullableOptional

The date when the document was created.

Example: 2025-04-30T10:00:00+00:00
externalDocumentNostring · nullableOptional

The external document number associated with the invoice.

Example: OC 4500355450
externalDocumentNo2string · nullableOptional

The second external document number associated with the invoice.

Example: 4540599242
yourReferencestring · nullableOptional

Can be the custom reference (free text) or the statement ID (fixed format).

Example: Custom reference: US-PSI-1525628 RITM55345369 Wrong SCU; Statement ID: SOMM-8224-9785-1293-2113
namestringOptional

The primary name associated with the address.

Example: Microsoft Corporation
name2string · nullableOptional

The secondary name associated with the address.

Example: Latin America Collections
emailstring · nullableOptional

The email associated with the address.

Example: no-reply@company.com
customerNostring · nullableOptional

The customer number associated with the address.

Example: AR-SCU-100064
addressLine1stringOptional

The first line of the address.

Example: Cazadores de Coquimbo 2860
addressLine2string · nullableOptional

The second line of the address.

Example: Munro
addressLine3string · nullableOptional

The third line of the address.

Example: Cuyo 3367
citystring · nullableOptional

The city of the address.

Example: Carapachay
postCodestring · nullableOptional

The postal code of the address.

Example: 75284-841
countystring · nullableOptional

The county/state/region of the address.

Example: Buenos Aires
countrystring · nullableOptional

The country of the address.

Example: AR
contactNamestring · nullableOptional

The contact name associated with the address.

Example: John Smith
contactNostring · nullableOptional

The contact number associated with the address.

Example: AR-CON-100260
contactEmailstring · nullableOptional

The contact email associated with the address.

Example: john.smith@company.com
contactPhonestring · nullableOptional

The contact phone number associated with the address.

Example: +541123456789
codestring · nullableOptional

The code associated with the address.

Example: CON-100333
namestringOptional

The primary name associated with the address.

Example: Microsoft Corporation
name2string · nullableOptional

The secondary name associated with the address.

Example: Latin America Collections
emailstring · nullableOptional

The email associated with the address.

Example: no-reply@company.com
customerNostring · nullableOptional

The customer number associated with the address.

Example: AR-SCU-100064
addressLine1stringOptional

The first line of the address.

Example: Cazadores de Coquimbo 2860
addressLine2string · nullableOptional

The second line of the address.

Example: Munro
addressLine3string · nullableOptional

The third line of the address.

Example: Cuyo 3367
citystring · nullableOptional

The city of the address.

Example: Carapachay
postCodestring · nullableOptional

The postal code of the address.

Example: 75284-841
countystring · nullableOptional

The county/state/region of the address.

Example: Buenos Aires
countrystring · nullableOptional

The country of the address.

Example: AR
contactNamestring · nullableOptional

The contact name associated with the address.

Example: John Smith
contactNostring · nullableOptional

The contact number associated with the address.

Example: AR-CON-100260
contactEmailstring · nullableOptional

The contact email associated with the address.

Example: john.smith@company.com
contactPhonestring · nullableOptional

The contact phone number associated with the address.

Example: +541123456789
codestring · nullableOptional

The code associated with the address.

Example: CON-100333
namestringOptional

The primary name associated with the address.

Example: Microsoft Corporation
name2string · nullableOptional

The secondary name associated with the address.

Example: Latin America Collections
emailstring · nullableOptional

The email associated with the address.

Example: no-reply@company.com
customerNostring · nullableOptional

The customer number associated with the address.

Example: AR-SCU-100064
addressLine1stringOptional

The first line of the address.

Example: Cazadores de Coquimbo 2860
addressLine2string · nullableOptional

The second line of the address.

Example: Munro
addressLine3string · nullableOptional

The third line of the address.

Example: Cuyo 3367
citystring · nullableOptional

The city of the address.

Example: Carapachay
postCodestring · nullableOptional

The postal code of the address.

Example: 75284-841
countystring · nullableOptional

The county/state/region of the address.

Example: Buenos Aires
countrystring · nullableOptional

The country of the address.

Example: AR
contactNamestring · nullableOptional

The contact name associated with the address.

Example: John Smith
contactNostring · nullableOptional

The contact number associated with the address.

Example: AR-CON-100260
contactEmailstring · nullableOptional

The contact email associated with the address.

Example: john.smith@company.com
contactPhonestring · nullableOptional

The contact phone number associated with the address.

Example: +541123456789
codestring · nullableOptional

The code associated with the address.

Example: CON-100333
namestringOptional

The primary name associated with the address.

Example: Microsoft Corporation
name2string · nullableOptional

The secondary name associated with the address.

Example: Latin America Collections
emailstring · nullableOptional

The email associated with the address.

Example: no-reply@company.com
customerNostring · nullableOptional

The customer number associated with the address.

Example: AR-SCU-100064
addressLine1stringOptional

The first line of the address.

Example: Cazadores de Coquimbo 2860
addressLine2string · nullableOptional

The second line of the address.

Example: Munro
addressLine3string · nullableOptional

The third line of the address.

Example: Cuyo 3367
citystring · nullableOptional

The city of the address.

Example: Carapachay
postCodestring · nullableOptional

The postal code of the address.

Example: 75284-841
countystring · nullableOptional

The county/state/region of the address.

Example: Buenos Aires
countrystring · nullableOptional

The country of the address.

Example: AR
contactNamestring · nullableOptional

The contact name associated with the address.

Example: John Smith
contactNostring · nullableOptional

The contact number associated with the address.

Example: AR-CON-100260
contactEmailstring · nullableOptional

The contact email associated with the address.

Example: john.smith@company.com
contactPhonestring · nullableOptional

The contact phone number associated with the address.

Example: +541123456789
codestring · nullableOptional

The code associated with the address.

Example: CON-100333
appliesToDocNostring · nullableOptional

The document number to which this credit memo applies.

currencyCodestring · nullableOptional

The currency code of the credit memo.

documentDatestring · date-time · nullableOptional

The document date of the credit memo.

documentNostringOptional

The document number of the credit memo.

externalDocumentNostring · nullableOptional

The external document number of the credit memo.

externalDocumentNo2string · nullableOptional

The second external document number of the credit memo.

insideSalesCodestring · nullableOptional

The inside sales code associated with the credit memo.

navisionCountryCodestringOptional

The Navision country code of the credit memo.

postingDatestring · date-timeOptional

The posting date of the credit memo.

revisioninteger · int64 · nullableOptional

The revision of the invoice, used for versioning control.

rowVersioninteger · int64 · nullableOptional

The row version of the credit memo, used for concurrency control.

responsibilityCenterCodestring · nullableOptional

The responsibility center code of the credit memo.

salesPersonCodestring · nullableOptional

The sales person code of the credit memo.

shipmentMethodCodestring · nullableOptional

The shipment method code of the credit memo.

vatRegistrationNostring · nullableOptional

The VAT registration number of the credit memo.

yourReferencestring · nullableOptional

The reference provided by the customer.

statementstring · nullableOptional

Statement identifier.

Example: SOM-6707-9575-2243-2374
customerstring · nullableOptional

Bill to customer identifier.

Example: BUY-1366-0012
agreementstring · nullableOptional

Agreement identifier.

Example: AGR-0027-6450-2635
idstringOptional
namestringOptional
iconstring · nullableOptional
revisioninteger · int32Optional
statusstring · enumOptionalPossible values:
idstringOptional
namestringOptional
iconstring · nullableOptional
revisioninteger · int32Optional
idstringOptional
namestringOptional
iconstring · nullableOptional
revisioninteger · int32Optional
typestring · enumOptionalPossible values:
statusstring · enumOptionalPossible values:
idstringOptional
namestringOptional
iconstring · nullableOptional
revisioninteger · int32Optional
externalIdstring · nullableOptional
idstringOptional

The unique identifier for the credit memo line.

descriptionstring · nullableOptional

The description of the credit memo line.

description2string · nullableOptional

The secondary description (aka additional info) of the credit memo line.

documentNostringOptional

The document number associated with the credit memo line.

contractNostring · nullableOptional

The contract number associated with the credit memo line.

countryOfUsagestring · nullableOptional

The country of usage for the credit memo line.

dataOrigininteger · int32 · nullableOptional

The data origin for the credit memo line.

externalPositionNostring · nullableOptional

The external position number for the credit memo line.

navisionCountryCodestringOptional

The Navision country code for the credit memo line.

parentItemNostring · nullableOptional

The parent item number for the credit memo line.

identifierstringOptional

The unique identifier for the ERP code.

valuestring · nullableOptional

The value of the ERP code.

versionstring · nullableOptional

The version of the ERP code.

identifierstringOptional

The unique identifier for the ERP code.

valuestring · nullableOptional

The value of the ERP code.

versionstring · nullableOptional

The version of the ERP code.

rowVersioninteger · int64 · nullableOptional

The row version of the credit memo line, for concurrency control.

responsibilityCenterCodestring · nullableOptional

The responsibility center code for the credit memo line.

swoPurchaseOrderNostring · nullableOptional

The SWO purchase order number for the credit memo line.

typeinteger · int32 · nullableOptional

The type of the credit memo line.

unitOfMeasurestring · nullableOptional

The unit of measure for the credit memo line.

varAgreementNostring · nullableOptional

The VAR agreement number for the credit memo line.

varPartnerNostring · nullableOptional

The VAR partner number for the credit memo line.

itemNostring · nullableOptional

The item number for the credit memo line.

lineNointeger · int32Optional

The line number for the credit memo line.

startstring · date-time · nullableOptional
endstring · date-time · nullableOptional
amountnumber · double · nullableOptional

The amount for the credit memo line, visible to clients or operations.

amountIncludingVatnumber · double · nullableOptional

The amount including VAT for the credit memo line, visible to clients or operations.

discountAmountnumber · double · nullableOptional

The discount amount for the credit memo line, visible to clients or operations.

invoiceDiscountAmountnumber · double · nullableOptional

The invoice discount amount for the credit memo line, visible to clients or operations.

lineAmountnumber · double · nullableOptional

The line amount for the credit memo line, visible to clients or operations.

purchaseCurrencyCodestring · nullableOptional

The currency used for the purchase price, visible only to operations.

purchaseCurrencyFactornumber · double · nullableOptional

The factor applied to the purchase currency, visible only to operations.

purchasePricenumber · doubleOptional

The purchase price for the credit memo line, visible only to operations.

purchasePriceLcynumber · doubleOptional

The purchase price in local currency for the credit memo line, visible only to operations.

purchasePriceTotalnumber · doubleOptional

The total purchase price for the credit memo line, visible only to operations.

purchasePriceTotalLcynumber · doubleOptional

The total purchase price in local currency for the credit memo line, visible only to operations.

quantityinteger · int32Optional

The quantity for the credit memo line.

salesMarkupnumber · double · nullableOptional

The sales markup for the credit memo line, visible only to operations.

salesMarginnumber · double · nullableOptional

The sales margin for the credit memo line, visible only to operations.

unitPricenumber · double · nullableOptional

The unit price for the credit memo line.

vatBaseAmountnumber · doubleOptional

The VAT base amount for the credit memo line.

vatCalculationTypeinteger · int32 · nullableOptional

The VAT calculation type for the credit memo line.

vatPercentnumber · double · nullableOptional

The VAT percentage for the credit memo line.

cloudiqTenantstring · nullableOptional

Cloud iQ tenant.

currencystringOptional

The currency of the credit memo.

currencyFactornumber · double · nullableOptional

The factor applied to the currency, used for conversion or adjustments.

currencyFactor2number · double · nullableOptional

The second factor applied to the currency, used for conversion or adjustments.

marginnumber · double · nullableOptional

The margin value of the credit memo, visible to operations.

markupnumber · double · nullableOptional

The markup value of the credit memo, visible to operations.

totalPPnumber · double · nullableOptional

The total purchase price (PP) of the credit memo, visible to operations.

totalSPnumber · double · nullableOptional

The total selling price (SP) of the credit memo, visible to clients or operations.

totalSTnumber · double · nullableOptional

The total sales tax (ST) of the credit memo, visible to clients or operations.

totalGTnumber · double · nullableOptional

The total gross amount (GT) of the credit memo, visible to clients or operations.

idstringOptional
namestringOptional
iconstring · nullableOptional
revisioninteger · int32Optional
operationsstring · nullableOptional
defaultErpItemstring · nullableOptional
statusstringOptional
idstringOptional
namestringOptional
iconstring · nullableOptional
revisioninteger · int32Optional
externalIdstring · nullableOptional
statusstring · enumOptionalPossible values:
idstringOptional
namestringOptional
iconstring · nullableOptional
revisioninteger · int32Optional
typestring · enumOptionalPossible values:
statusstring · enumOptionalPossible values:
revisioninteger · int32Optional
idstringOptional

The unique identifier of the statement.

Example: SOM-1234-1234-1234-1234-1234
statusstring · enumOptional

Specifies the status of an analytics operation.

Possible values:
revisioninteger · int32Optional
idstringOptional

The unique identifier of the invoice.

Example: INV-123-456-789
appliesToDocNostring · nullableOptional

The ERP applies-to document number this credit memo was raised against. Computed by the store from the ErpData JSON and never written directly, so it always agrees with the value inside that JSON. Deliberately exposed as filterable and sortable, which the JSON copy is not, so that a credit memo can be found by the invoice it was raised against. The invoice-side link lookup seeks on the same index.

cloudiqInvoiceReferencestring · nullableOptional

Cloud iQ invoice reference.

cloudiqReportLayoutinteger · int32 · nullableOptional

Cloud iQ report layout.

400

Bad Request

application/json
typestring · nullableOptional
titlestring · nullableOptional
statusinteger · int32 · nullableOptional
detailstring · nullableOptional
instancestring · nullableOptional
Other propertiesanyOptional
403

Forbidden

application/json
typestring · nullableOptional
titlestring · nullableOptional
statusinteger · int32 · nullableOptional
detailstring · nullableOptional
instancestring · nullableOptional
Other propertiesanyOptional
500

Internal Server Error

No content

post/public/v1/billing/credit-memos
POST /public/v1/billing/credit-memos HTTP/1.1
Host: api.platform.softwareone.com
Accept: */*
{
  "audit": {
    "created": {
      "at": "2026-01-01T00:00:00.000Z",
      "by": {
        "id": "text",
        "name": "text",
        "icon": "text",
        "revision": 1
      }
    },
    "updated": {
      "at": "2026-01-01T00:00:00.000Z",
      "by": {
        "id": "text",
        "name": "text",
        "icon": "text",
        "revision": 1
      }
    },
    "issued": {
      "at": "2026-01-01T00:00:00.000Z",
      "by": {
        "id": "text",
        "name": "text",
        "icon": "text",
        "revision": 1
      }
    }
  },
  "$meta": {
    "omitted": [
      "text"
    ]
  },
  "revision": 1,
  "id": "text",
  "countryCode": "IE",
  "documentNo": "DOC-67890",
  "attributes": {
    "postingDate": "2025-05-01T10:00:00+00:00",
    "documentDate": "2025-04-30T10:00:00+00:00",
    "externalDocumentNo": "OC 4500355450",
    "externalDocumentNo2": "4540599242",
    "yourReference": "Custom reference: US-PSI-1525628 RITM55345369 Wrong SCU; Statement ID: SOMM-8224-9785-1293-2113"
  },
  "erpData": {
    "addresses": {
      "billTo": {
        "name": "Microsoft Corporation",
        "name2": "Latin America Collections",
        "email": "no-reply@company.com",
        "customerNo": "AR-SCU-100064",
        "addressLine1": "Cazadores de Coquimbo 2860",
        "addressLine2": "Munro",
        "addressLine3": "Cuyo 3367",
        "city": "Carapachay",
        "postCode": "75284-841",
        "county": "Buenos Aires",
        "country": "AR",
        "contactName": "John Smith",
        "contactNo": "AR-CON-100260",
        "contactEmail": "john.smith@company.com",
        "contactPhone": "+541123456789",
        "code": "CON-100333"
      },
      "licenseTo": {
        "name": "Microsoft Corporation",
        "name2": "Latin America Collections",
        "email": "no-reply@company.com",
        "customerNo": "AR-SCU-100064",
        "addressLine1": "Cazadores de Coquimbo 2860",
        "addressLine2": "Munro",
        "addressLine3": "Cuyo 3367",
        "city": "Carapachay",
        "postCode": "75284-841",
        "county": "Buenos Aires",
        "country": "AR",
        "contactName": "John Smith",
        "contactNo": "AR-CON-100260",
        "contactEmail": "john.smith@company.com",
        "contactPhone": "+541123456789",
        "code": "CON-100333"
      },
      "sellTo": {
        "name": "Microsoft Corporation",
        "name2": "Latin America Collections",
        "email": "no-reply@company.com",
        "customerNo": "AR-SCU-100064",
        "addressLine1": "Cazadores de Coquimbo 2860",
        "addressLine2": "Munro",
        "addressLine3": "Cuyo 3367",
        "city": "Carapachay",
        "postCode": "75284-841",
        "county": "Buenos Aires",
        "country": "AR",
        "contactName": "John Smith",
        "contactNo": "AR-CON-100260",
        "contactEmail": "john.smith@company.com",
        "contactPhone": "+541123456789",
        "code": "CON-100333"
      },
      "shipTo": {
        "name": "Microsoft Corporation",
        "name2": "Latin America Collections",
        "email": "no-reply@company.com",
        "customerNo": "AR-SCU-100064",
        "addressLine1": "Cazadores de Coquimbo 2860",
        "addressLine2": "Munro",
        "addressLine3": "Cuyo 3367",
        "city": "Carapachay",
        "postCode": "75284-841",
        "county": "Buenos Aires",
        "country": "AR",
        "contactName": "John Smith",
        "contactNo": "AR-CON-100260",
        "contactEmail": "john.smith@company.com",
        "contactPhone": "+541123456789",
        "code": "CON-100333"
      }
    },
    "appliesToDocNo": "text",
    "currencyCode": "text",
    "documentDate": "2026-01-01T00:00:00.000Z",
    "documentNo": "text",
    "externalDocumentNo": "text",
    "externalDocumentNo2": "text",
    "insideSalesCode": "text",
    "navisionCountryCode": "text",
    "postingDate": "2026-01-01T00:00:00.000Z",
    "revision": 1,
    "rowVersion": 1,
    "responsibilityCenterCode": "text",
    "salesPersonCode": "text",
    "shipmentMethodCode": "text",
    "vatRegistrationNo": "text",
    "yourReference": "text"
  },
  "externalIds": {
    "statement": "SOM-6707-9575-2243-2374",
    "customer": "BUY-1366-0012",
    "agreement": "AGR-0027-6450-2635"
  },
  "agreement": {
    "id": "text",
    "name": "text",
    "icon": "text",
    "revision": 1,
    "status": "New"
  },
  "buyer": {
    "id": "text",
    "name": "text",
    "icon": "text",
    "revision": 1
  },
  "client": {
    "id": "text",
    "name": "text",
    "icon": "text",
    "revision": 1,
    "type": "Client",
    "status": "Active"
  },
  "licensee": {
    "id": "text",
    "name": "text",
    "icon": "text",
    "revision": 1,
    "externalId": "text"
  },
  "lines": [
    {
      "id": "text",
      "description": "text",
      "description2": "text",
      "documentNo": "text",
      "erpData": {
        "contractNo": "text",
        "countryOfUsage": "text",
        "dataOrigin": 1,
        "externalPositionNo": "text",
        "navisionCountryCode": "text",
        "parentItemNo": "text",
        "primary": {
          "identifier": "text",
          "value": "text",
          "version": "text"
        },
        "secondary": {
          "identifier": "text",
          "value": "text",
          "version": "text"
        },
        "rowVersion": 1,
        "responsibilityCenterCode": "text",
        "swoPurchaseOrderNo": "text",
        "type": 1,
        "unitOfMeasure": "text",
        "varAgreementNo": "text",
        "varPartnerNo": "text"
      },
      "itemNo": "text",
      "lineNo": 1,
      "period": {
        "start": "2026-01-01T00:00:00.000Z",
        "end": "2026-01-01T00:00:00.000Z"
      },
      "price": {
        "amount": 1,
        "amountIncludingVat": 1,
        "discountAmount": 1,
        "invoiceDiscountAmount": 1,
        "lineAmount": 1,
        "purchaseCurrencyCode": "text",
        "purchaseCurrencyFactor": 1,
        "purchasePrice": 1,
        "purchasePriceLcy": 1,
        "purchasePriceTotal": 1,
        "purchasePriceTotalLcy": 1,
        "quantity": 1,
        "salesMarkup": 1,
        "salesMargin": 1,
        "unitPrice": 1,
        "vatBaseAmount": 1,
        "vatCalculationType": 1,
        "vatPercent": 1
      },
      "cloudiqTenant": "text"
    }
  ],
  "price": {
    "currency": "text",
    "currencyFactor": 1,
    "currencyFactor2": 1,
    "margin": 1,
    "markup": 1,
    "totalPP": 1,
    "totalSP": 1,
    "totalST": 1,
    "totalGT": 1
  },
  "product": {
    "id": "text",
    "name": "text",
    "icon": "text",
    "revision": 1,
    "externalIds": {
      "operations": "text",
      "defaultErpItem": "text"
    },
    "status": "text"
  },
  "seller": {
    "id": "text",
    "name": "text",
    "icon": "text",
    "revision": 1,
    "externalId": "text"
  },
  "status": "Issued",
  "vendor": {
    "id": "text",
    "name": "text",
    "icon": "text",
    "revision": 1,
    "type": "Client",
    "status": "Active"
  },
  "statement": {
    "revision": 1,
    "id": "SOM-1234-1234-1234-1234-1234"
  },
  "analytics": {
    "status": "Pending"
  },
  "invoice": {
    "revision": 1,
    "id": "INV-123-456-789"
  },
  "appliesToDocNo": "text",
  "cloudiqInvoiceReference": "text",
  "cloudiqReportLayout": 1
}

Creates new credit memos.