PHPR API (3.7.0)

Download OpenAPI specification:

PHPR API USING API-PLATFORM

person_suppliers

Creates a person_suppliers resource.

Creates a person_suppliers resource.

Authorizations:
JWT
path Parameters
id
required
string

person_suppliers identifier

Request Body schema:
required

The new person_suppliers resource

bills
Array of strings <iri-reference> [ items <iri-reference > ]
products
Array of strings <iri-reference> [ items <iri-reference > ]
person
required
string <iri-reference>

Get person.

discount
required
string
notes
string or null
paymentTerms
string or null
responsible
string or null <iri-reference>

Get responsible.

socialReason
string or null
owner
string or null
fedTaxNumber
string or null
provTaxNumber
string or null
orderDay
string or null
fileTypes
string or null
code
string or null
accountNumber
string or null
paymentTime
integer or null
interestsOnPayment
required
string
paymentDiscount
required
string
nbDaysPaymentDiscount
integer
Default: 10
shipper
string or null <iri-reference>
deliveryTime
integer
Default: 30
deliveryFrequency
integer or null
owningCorporation
string <iri-reference>
productBuyCosts
Array of strings <iri-reference> [ items <iri-reference > ]
orderMinAmount
string
orderMaxAmount
string or null
accountMaxAmount
string or null
deletedAt
string or null <date-time>
slug
required
string

DB Identifier

customProperties
any

Can contain anything (array, objects, nested objects...).

customData
Array of strings or null
createdAt
string <date-time>
updatedAt
string <date-time>
disabledAt
string or null <date-time>
object (Collection.jsonld)
upload_filename
string
upload_subfolder
string
upload_file
string
upload_file_link
string
timestamp
string <date-time>

Get createdAt.

upload_Subfolder
string
upload_File
string
upload_File_Link
string

Responses

Request samples

Content type
{
  • "bills": [],
  • "products": [],
  • "discount": "string",
  • "notes": "string",
  • "paymentTerms": "string",
  • "responsible": "https://example.com/",
  • "socialReason": "string",
  • "owner": "string",
  • "fedTaxNumber": "string",
  • "provTaxNumber": "string",
  • "orderDay": "string",
  • "fileTypes": "string",
  • "code": "string",
  • "accountNumber": "string",
  • "paymentTime": 0,
  • "interestsOnPayment": "string",
  • "paymentDiscount": "string",
  • "nbDaysPaymentDiscount": 10,
  • "shipper": "https://example.com/",
  • "deliveryTime": 30,
  • "deliveryFrequency": 0,
  • "owningCorporation": "https://example.com/",
  • "productBuyCosts": [],
  • "orderMinAmount": "string",
  • "orderMaxAmount": "string",
  • "accountMaxAmount": "string",
  • "deletedAt": "2019-08-24T14:15:22Z",
  • "slug": "string",
  • "customProperties": null,
  • "customData": [
    ],
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "disabledAt": "2019-08-24T14:15:22Z",
  • "entityFiles": { },
  • "upload_filename": "string",
  • "upload_subfolder": "string",
  • "upload_file": "string",
  • "upload_file_link": "string",
  • "timestamp": "2019-08-24T14:15:22Z",
  • "upload_Subfolder": "string",
  • "upload_File": "string",
  • "upload_File_Link": "string"
}

Response samples

Content type
{
  • "@context": "string",
  • "@id": "string",
  • "@type": "string",
  • "person": {
    },
  • "discount": "string",
  • "notes": "string",
  • "paymentTerms": "string",
  • "responsible": {
    },
  • "socialReason": "string",
  • "owner": "string",
  • "fedTaxNumber": "string",
  • "provTaxNumber": "string",
  • "orderDay": "string",
  • "fileTypes": "string",
  • "code": "string",
  • "accountNumber": "string",
  • "paymentTime": 0,
  • "interestsOnPayment": "string",
  • "paymentDiscount": "string",
  • "nbDaysPaymentDiscount": 10,
  • "shipper": {
    },
  • "deliveryTime": 30,
  • "deliveryFrequency": 0,
  • "owningCorporation": {
    },
  • "orderMinAmount": "string",
  • "orderMaxAmount": "string",
  • "accountMaxAmount": "string",
  • "shortcode": "F",
  • "deletedAt": "2019-08-24T14:15:22Z",
  • "id": 0,
  • "slug": "string",
  • "customProperties": null,
  • "customData": [
    ],
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "disabledAt": "2019-08-24T14:15:22Z",
  • "toString": 0,
  • "billsListing": "string",
  • "productsListing": "string",
  • "customPropertiesListing": "string",
  • "anonymousToken": "string",
  • "uniqueId": "string",
  • "taggingListing": "string",
  • "enabled": true,
  • "disabled": true
}