Insert payment method for company

Inserts a PaymentMethod for the specified Company. Legacy method. Use InserCompanyPaymentMethod2 when possible.

Request
query Parameters
methodId
required
integer <int32>

The internal id of the PaymentMethod to insert.

companyId
required
integer <int32>

The internal id of the Company for which the PaymentMethod gets inserted.

createdBy
string

Account internal id of current user.

cultureCode
string

Specifies in which language to display culture specific information. If none is supplied, value is resolved from Application.

Responses
200

Success

400

Bad Request

Key: CompanyMissing. Gets raised if the company does not exist.

500

Internal Server Error

post/CustomerService.svc/rest/InsertCompanyPaymentMethod
Response samples
{
  • "Id": 0,
  • "Key": "string",
  • "Code": "string",
  • "Name": "string",
  • "OrgNo": "string",
  • "Phone": "string",
  • "ReferId": 0,
  • "ReferUrl": "string",
  • "DeliveryAddresses": [
    ],
  • "InvoiceAddress": {
    },
  • "UseInvoiceAddressAsDeliveryAddress": true,
  • "Info": [
    ],
  • "PricelistIds": [
    ],
  • "ParentId": 0,
  • "DeliveryMethodIds": [
    ],
  • "PaymentMethodIds": [
    ],
  • "Email": "string",
  • "Flags": [
    ],
  • "VatNo": "string"
}