Index | Conventions

api/v1/rfc

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.

NoteAPI Logged on User permissions are adhered to like any other Jim User.
RelationshipTypeReturnsIncludablePatchable
commentsRFCCommentarray✓✗
customerCardFileobject✓✗
invoiceInvoiceobject✗✗
stockRFCStockarray✓✗

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.

NoteEach relationship you include embeds its full related resources in the response, so requesting includes — especially several at once, or to-many relationships that return every related row with no paging — can greatly increase the size of the payload. Only request the includes you actually need.

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:

AttributeTypeDescription
accFeenumberThe account fee amount on the request for credit.
accFeeTaxnumberThe account fee tax amount on the request for credit.
branchCodestringThe branch code.
Branches are optional in Jim2 - this is only set when your site is configured to use branches.
companyCodestringThe company code.
currencyCodestringThe currency code.
dateInstring (DateTime in ISO format)The date-in for the request for credit.
dateOutstring (DateTime in ISO format)The date-out for the request for credit.
exchangeRatenumberThe currency exchange rate applied to the request for credit.
freightnumberThe freight amount on the request for credit.
freightTaxnumberThe freight tax amount on the request for credit.
glDeptCodestringThe GL department code.
GL departments are optional in Jim2 - this is only set when your site is configured to use GL departments.
invNointegerThe invoice number this request for credit relates to.
notesstringNotes on the request for credit.
poNointegerThe purchase order number this request for credit relates to.
projectNointegerThe project number this request for credit relates to.
statusstringThe request-for-credit's current status.
strictReturnbooleanWhether the return is a strict return (each line matched to a source document).
subBranchCodestringThe sub-branch code.
Sub-branches are optional in Jim2 - this is only set when your site is configured to use sub-branches.
typeNointegerThe request-for-credit type number.

Example GET (Return specific)

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.

{
    "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"
            }
        }
    ]
}