# Credit an Order Create a credit request that is sent to a payment service, if applicable. Must be related to an order, but can be a partly credit.Read more about the method here. Endpoint: POST /Order/CreditPayment Version: 4.0 ## Request fields (application/json): - `ClientOrderRef` (integer, required) Reference basket/quotation id. - `CurrencyCode` (string, required) Currency code, e.g. SEK. Max length: 3 - `ErpOrderNo` (string, required) Reference ERP order number. - `InvoiceDate` (string, required) Invoice creation date. - `InvoiceNo` (string) Invoice identification number. Must be unique. - `AddressLine1` (string) First line of receiver's address. - `AddressLine2` (string) Second line of receiver's address. - `ApplicationKey` (string) Application identifier. - `Attention` (string) Receiver attention. - `CareOf` (string) Receiver care of. - `City` (string) Receiver's city. - `Comment` (string) Client comment. - `Country` (string) Receiver's country. - `CountryCode` (string) Country code (e.g. 'SE') explicit set for invoice to be forwarded to PSP. - `CreditedInvoiceNo` (string) Invoice number of the invoice to credit (Only mandatory for credits). - `CultureCode` (string) Culture code (e.g. 'sv-SE') explicit set for invoice to be forwarded to PSP. - `DeliveryDate` (string) Date when order was shipped. - `Gln` (string) Global location number. Identifier for company/customer. - `GroupCode` (string) Code used for grouping of invoices (for partial invoicing). - `InvoiceDueDate` (string) Last date for invoice payments. - `InvoiceRoundOff` (number) Total invoice round off. - `IsLastInvoiceForOrder` (boolean) Determines if all invoices already received in case of partial payments. Null is considered as true. - `Items` (array) List of invoiced order items. Mandatory for PSP capture. - `Items.PartNo` (string, required) Item part no. - `Items.Quantity` (integer, required) Quantity of invoiced items. - `Items.UnitPrice` (number, required) Unit price - `Items.Description` (string) Item description. Mandatory for PSP capture. - `Items.Discount` (number) Deprecated - `Items.LineAmount` (number) Deprecated - `Items.LineNo` (number) Line number. - `Items.PriceList` (string) Item price list. - `Items.ProductName` (string) Product name. - `Items.SalePrice` (number) Deprecated - `Items.UnitVat` (number) Unit VAT amount. Mandatory for PSP capture. - `Items.VatRate` (number) VAT rate in percent. Mandatory for PSP capture. - `Name` (string) Receiver name - `Payment` (object) Represents successful payment reservation. Either PaymentCode or PaymentRef must be provided. - `Payment.PaymentCode` (integer, required) Payment code. Used for payment matching. - `Payment.PaymentMethodCode` (string, required) Payment method that should be sent in to the ERP, the code is configurable in Norce Commerce. - `Payment.PaymentRef` (string, required) Transaction identifier from 3rd party, like payment service provider. - `Payment.AdditionalInfo` (array) 3rd party specific information abount payment (client and PSP decides what this can contain). - `Payment.AdditionalInfo.Code` (string) Configurable identifier in Norce Commerce. This has erroneous behaviour. - `Payment.AdditionalInfo.Code2` (string) Configurable identifier in Norce Commerce. - `Payment.AdditionalInfo.Id` (integer) Norce Commerce internal id for the info type (use code instead) - `Payment.AdditionalInfo.Value` (string) The value set to the item from an integrated system to Norce Commerce. - `Payment.Amount` (number) Amount paid or reserved including VAT after rounding rules. - `Payment.CurrencyCode` (string) Currency code in ISO 4217 format, e.g. "SEK", "EUR", "USD". Max length: 3 - `Payment.PaymentName` (string) Name of the payment selected at the provider, e.g. "Card", "BankAccount", "Swish". Names are PSP dependent. - `PaymentMethodCode` (string) Code for payment method used (for receipts). - `PaymentMethodName` (string) Name of payment method used (for receipts). - `Region` (string) Receiver's region. - `SuppressPspCall` (boolean) Set to true to suppress a PSP call for this invoice. Invoice will be stored as information only. - `TotalAmount` (number) Deprecated - `Vat` (number) VAT amount - `VatRoundOff` (number) Deprecated - `ZipCode` (string) Receiver's zip code.