Creates or updates payment details for a subcontractor

Request

POST https://api.yourpayroll.co.uk/api/v2/business/{businessId}/subcontractor/{subcontractorId}/paymentdetails

Path parameters

Parameter name Value Description Additional
subcontractorId int32 Required
businessId string Required

Request body

The request body takes a complete UkSaveSubcontractorPaymentDetailsModel resource, containing the following writable properties:

{
    "accountName": "string",
    "accountNumber": "string",
    "accountType": "string",
    "bankAccountId": "int32",
    "lastPaymentDate": "date-time",
    "payCategoryId": "int32",
    "payScheduleId": "int32",
    "rollNumber": "string",
    "sortCode": "string"
}

Properties

Name Type Description
accountName string String
accountNumber string String
accountType string BankAccountTypeEnum

Possible values are:

  • Electronic
  • ManualDeposit
  • CashOrCheque
bankAccountId int32 Nullable
lastPaymentDate date-time Nullable
payCategoryId int32 Nullable
payScheduleId int32 Nullable
rollNumber string String
sortCode string String

Response

The following HTTP status codes may be returned, optionally with a response resource.

Status code Description Resource
200 OK

OK

UkSubcontractorPaymentDetailsModel