Path: api/v1/rfc
This API is JSON:API compliant.
This endpoint supports the following methods:
GET
This endpoint requires an OAuth bearer token, and returns errors in a standard shape. See API Conventions for authentication, error responses and paging, which apply to every endpoint.
The resource type for this endpoint is RFC
The identifier is rfcno
Relationships
A relationship links this RFC to another resource. Includable relationships can be embedded via the include query parameter (see Includes below). Patchable relationships can be changed via PATCH.
| Relationship | Type | Returns | Includable | Patchable |
|---|---|---|---|---|
| comments | RFCComment | array | ✓ | ✗ |
| customer | CardFile | object | ✓ | ✗ |
| invoice | Invoice | object | ✗ | ✗ |
| stock | RFCStock | array | ✓ | ✗ |
Includes
Use the include query parameter to embed Includable relationships in a single response, for example:GET /api/v1/rfc/{rfcno}?include=customer,stock,comments
Embedded resources are returned in a top-level included array, not nested inside the relationship. Match each one back to its relationship by type and id.
For example, requesting include=customer returns the customer reference under relationships and the full resource in the included array. The reference and the included entry share the same type and id:
GET /api/v1/rfc/{rfcno}?include=customer
{
"data": {
"type": "RFC",
"id": "1001",
"relationships": {
"customer": {
"data": { "type": "CardFile", "id": "2002" }
}
}
},
"included": [
{
"type": "CardFile",
"id": "2002",
"attributes": { ... }
}
]
}
Attributes
The RFC resource type attributes are as follows:
| Attribute | Type | Description |
|---|---|---|
| accFee | number | The account fee amount on the request for credit. |
| accFeeTax | number | The account fee tax amount on the request for credit. |
| branchCode | string | The branch code. Branches are optional in Jim2 - this is only set when your site is configured to use branches. |
| companyCode | string | The company code. |
| currencyCode | string | The currency code. |
| dateIn | string (DateTime in ISO format) | The date-in for the request for credit. |
| dateOut | string (DateTime in ISO format) | The date-out for the request for credit. |
| exchangeRate | number | The currency exchange rate applied to the request for credit. |
| freight | number | The freight amount on the request for credit. |
| freightTax | number | The freight tax amount on the request for credit. |
| glDeptCode | string | The GL department code. GL departments are optional in Jim2 - this is only set when your site is configured to use GL departments. |
| invNo | integer | The invoice number this request for credit relates to. |
| notes | string | Notes on the request for credit. |
| poNo | integer | The purchase order number this request for credit relates to. |
| projectNo | integer | The project number this request for credit relates to. |
| status | string | The request-for-credit's current status. |
| strictReturn | boolean | Whether the return is a strict return (each line matched to a source document). |
| subBranchCode | string | The sub-branch code. Sub-branches are optional in Jim2 - this is only set when your site is configured to use sub-branches. |
| typeNo | integer | The request-for-credit type number. |
Path: api/v1/rfc/10?include=customer,stock,comments Response: This example shows the maximum set of fields the endpoint can return, all populated. A real response only contains the data that applies to that record, so fields that are empty or not relevant are omitted — do not assume every field shown here will be present in every response.
Example GET (Return specific)
{
"data": {
"attributes": {
"accFee": 12.0,
"accFeeTax": 1.2,
"branchCode": "SYD",
"companyCode": "P.COMPANY2",
"currencyCode": "AUD",
"dateIn": "2025-11-24T09:15:00",
"dateOut": "2025-11-26T14:30:00",
"exchangeRate": 1.0,
"freight": 33.0,
"freightTax": 3.3,
"glDeptCode": "1",
"invNo": 42,
"notes": "Customer requested credit for faulty units.",
"poNo": 30,
"projectNo": 7,
"status": "Booked",
"strictReturn": true,
"subBranchCode": "SALE",
"typeNo": 1
},
"id": "10",
"links": {
"self": "/api/v1/rfc/10"
},
"relationships": {
"comments": {
"data": [
{
"id": "10-1",
"type": "RFCComment"
}
]
},
"customer": {
"data": {
"id": "6",
"type": "CardFile"
}
},
"invoice": {
"data": {
"id": "42",
"type": "Invoice"
}
},
"stock": {
"data": [
{
"id": "10-1",
"type": "RFCStock"
}
]
}
},
"type": "RFC"
},
"included": [
{
"attributes": {
"aBN": "53004085616",
"aCN": "004085616",
"address": {
"country": "Australia",
"isAddressResidential": false,
"postCode": "2000",
"state": "NSW",
"streetAddress": "18 Customer Lane",
"suburb": "Sydney"
},
"branchCode": "SYD",
"cardCode": "CUSTCO",
"cardNo": 6,
"contact": "Carol Customer",
"customer": {
"accFeePerc": 2.5,
"backorder": "Allow Backorders",
"batchInvGroupBy": "Customer",
"bPayRefNo": "123456789",
"creditHold": "OFF( Auto )",
"creditLimit": 50000.0,
"currencyCode": "AUD",
"custPONo": "PO-STANDING-6",
"priceLevel": "Wholesale",
"requiredDays": 30,
"requiredHours": 0,
"sendInvVia": "Email",
"sendStatementVia": "Email",
"taxExclCode": "E",
"taxInclCode": "G",
"taxPaid": true,
"terms": "30D",
"groups": [
{
"id": 3,
"name": "Preferred Customers",
"type": "Non Report",
"level": null
}
]
},
"groups": [
{
"id": 3,
"name": "Preferred Customers",
"type": "Non Report",
"level": null
}
],
"delAddress": {
"country": "Australia",
"isAddressResidential": false,
"postCode": "2000",
"state": "NSW",
"streetAddress": "18 Customer Lane",
"suburb": "Sydney"
},
"gLDeptCode": "1",
"name": "Customer Co Pty Ltd",
"shipAmount": 15.0,
"shipVia": "Courier",
"subBranchCode": "SALE"
},
"id": "6",
"relationships": {
"accountManager": {
"data": {
"id": "2",
"type": "CardFile"
}
},
"contacts": {
"data": [
{
"id": "6-1",
"type": "CardFileContact"
}
]
},
"parent": {
"data": {
"id": "5",
"type": "CardFile"
}
}
},
"type": "CardFile"
},
{
"id": "10-1",
"type": "RFCStock",
"attributes": {
"qtyRet": 2.0,
"unitPriceTF": 20.0,
"unitPriceTP": 22.0,
"jobNo": 105,
"jobLineId": 1,
"sJobNo": 106,
"packId": 12,
"transfLocNo": 1,
"configNo": 4501,
"addinit": "API",
"adddate": "2025-11-24T09:15:00",
"stockId": 3,
"stockCode": "SAMSUNG.MON.CONNECT",
"unit": "EACH",
"description": "Samsung Monitor Connector.",
"modifyinit": "API",
"modifydate": "2025-11-24T09:15:00"
}
},
{
"id": "10-1",
"type": "RFCComment",
"attributes": {
"include": true,
"status": "Booked",
"comment": "Customer requested credit for faulty units.",
"modifyInit": "SYS",
"modifyDate": "2025-11-24T09:15:00+11:00"
}
}
]
}